mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use __stdin__ instead of stdin to derive FileType -- safer against
assignments.
This commit is contained in:
parent
1190ee3d03
commit
1f05708f69
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
|
|||
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…
Add table
Add a link
Reference in a new issue