Write at once.

This commit is contained in:
Ryan Leckey
2013-10-23 00:51:08 -07:00
parent cf8f6b5584
commit 7c7e84c8a9

View File

@@ -271,9 +271,7 @@ def create_mock_engine(bind, stream=None):
text = re.sub(r'\n+', '\n', text)
text = text.strip('\n').strip()
stream.write('\n')
stream.write(text)
stream.write(';')
stream.write('\n%s;' % text)
else: