summaryrefslogtreecommitdiff
path: root/misc/py-pyprind/files/patch-pyprind_prog__class.py
blob: 4f010b7fc9e9630caddafe884ae564c9ecdc77db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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