Flush stdout before printing

This commit is contained in:
Florian Bruhin 2014-05-09 16:25:50 +02:00
parent 662ae603c7
commit 2c314d61cf

View File

@ -56,6 +56,7 @@ def set_trace():
Based on http://stackoverflow.com/a/1745965/2085149
"""
sys.stdout.flush()
print()
print("When done debugging, remember to execute:")
print(" from PyQt5 import QtCore; QtCore.pyqtRestoreInputHook()")