Unable to flush stderr
Posted: September 11th, 2016, 11:35 am
I am using golly 2.8b1 and the following code results in an error.
I couldn't get the unittest module to work because of this, but I gave up to use it anyway, so not too important.
Edit: the error message:
Code: Select all
import sys
sys.stderr.flush()
Edit: the error message:
Code: Select all
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/scorbie/.golly/golly_clip.py", line 2, in <module>
sys.stderr.flush()
AttributeError: StderrCatcher instance has no attribute 'flush'