-
Committer:
Matt Chisholm
-
Date:
2013-02-18 21:23:03 UTC
-
Revision ID:
matt-launchpad@theory.org-20130218212303-01wfvy0uk4bx10qf
sys.stdout always has an encoding attribute, unless it has been overridden with another object, as nosetests does, for example. In that case, sys.stdout.encoding will raise an AttributeError. This will make it not raise that error and fall back to 'ascii'.