Kaydet (Commit) 1f05708f authored tarafından Guido van Rossum's avatar Guido van Rossum

Use __stdin__ instead of stdin to derive FileType -- safer against

assignments.
üst 1190ee3d
...@@ -42,7 +42,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType ...@@ -42,7 +42,7 @@ BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
ModuleType = type(sys) ModuleType = type(sys)
try: try:
FileType = type(sys.stdin) # XXX what if it was assigned to? FileType = type(sys.__stdin__)
except: except:
pass pass
XRangeType = type(xrange(0)) XRangeType = type(xrange(0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment