Write at once.
This commit is contained in:
@@ -271,9 +271,7 @@ def create_mock_engine(bind, stream=None):
|
|||||||
text = re.sub(r'\n+', '\n', text)
|
text = re.sub(r'\n+', '\n', text)
|
||||||
text = text.strip('\n').strip()
|
text = text.strip('\n').strip()
|
||||||
|
|
||||||
stream.write('\n')
|
stream.write('\n%s;' % text)
|
||||||
stream.write(text)
|
|
||||||
stream.write(';')
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user