Amaury Forgeot d'Arc <[email protected]> added the comment:
Closing as a duplicate of issue706263.
Instead of changing all print statements, you could set sys.stdout to another
file, for example:
sys.stdout=StringIO()
or another object that simply discards written data.
----------
nosy: +amaury.forgeotdarc
resolution: -> duplicate
status: open -> closed
superseder: -> print raises exception when no console available
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9503>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com