opnsense-ports/misc/py-pyprind/files/patch-pyprind_prog__class.py
Franco Fichtner 7b9017c2b3 */*: sync with upstream
Taken from: FreeBSD
2017-03-30 19:50:41 +02:00

12 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