freebsd-ports/misc/py-pyprind/files/patch-pyprind_prog__class.py
Carlos J. Puga Medina 406ca84eb2 - Update to 2.10.0
- While here, fix 'make test'

PR:		217523
Submitted by:	Neel Chauhan <neel@neelc.org> (maintainer)
2017-03-30 11:34:40 +00:00

13 lines
459 B
Python

--- pyprind/prog_class.py.orig 2017-03-18 12:03:55 UTC
+++ pyprind/prog_class.py
@@ -91,6 +91,9 @@ class Prog():
supported = ('PYCHARM_HOSTED' in os.environ or
os.isatty(sys.stdout.fileno()))
+ except AttributeError:
+ supported = False
+
# a fix for IPython notebook "IOStream has no fileno."
except(UnsupportedOperation):
supported = True