Show More
@@ -26,6 +26,7 b' import errno' | |||
|
26 | 26 | import gc |
|
27 | 27 | import hashlib |
|
28 | 28 | import imp |
|
29 | import io | |
|
29 | 30 | import itertools |
|
30 | 31 | import mmap |
|
31 | 32 | import os |
@@ -1178,7 +1179,10 b' def _sethgexecutable(path):' | |||
|
1178 | 1179 | |
|
1179 | 1180 | def _isstdout(f): |
|
1180 | 1181 | fileno = getattr(f, 'fileno', None) |
|
1181 | return fileno and fileno() == sys.__stdout__.fileno() | |
|
1182 | try: | |
|
1183 | return fileno and fileno() == sys.__stdout__.fileno() | |
|
1184 | except io.UnsupportedOperation: | |
|
1185 | return False # fileno() raised UnsupportedOperation | |
|
1182 | 1186 | |
|
1183 | 1187 | def shellenviron(environ=None): |
|
1184 | 1188 | """return environ with optional override, useful for shelling out""" |
General Comments 0
You need to be logged in to leave comments.
Login now