406ca84eb2
- While here, fix 'make test' PR: 217523 Submitted by: Neel Chauhan <neel@neelc.org> (maintainer)
13 lines
459 B
Python
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
|