Ticket #2452: management.diff
File management.diff, 628 bytes (added by , 18 years ago) |
---|
-
management.py
349 349 if os.path.exists(sql_file): 350 350 fp = open(sql_file) 351 351 for statement in statements.split(fp.read()): 352 # This regexp ensures that any comments presented within a sql 353 # statement will be removed. 354 statement = re.sub(r"--.*[\n\Z]", "", statement) 355 352 356 if statement.strip(): 353 357 output.append(statement + ";") 354 358 fp.close()