mirror of https://github.com/python/cpython.git
Use __stdin__ instead of stdin to derive FileType -- safer against
assignments.
This commit is contained in:
parent
1190ee3d03
commit
1f05708f69
|
@ -42,7 +42,7 @@ def _m(self): pass
|
|||
ModuleType = type(sys)
|
||||
|
||||
try:
|
||||
FileType = type(sys.stdin) # XXX what if it was assigned to?
|
||||
FileType = type(sys.__stdin__)
|
||||
except:
|
||||
pass
|
||||
XRangeType = type(xrange(0))
|
||||
|
|
Loading…
Reference in New Issue