summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 6c23e244e2..941940531b 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -57,12 +57,7 @@ BuiltinFunctionType = type(len)
BuiltinMethodType = type([].append) # Same as BuiltinFunctionType
ModuleType = type(sys)
-
-try:
- FileType = type(sys.__stdin__)
-except AttributeError:
- # Not available in restricted mode
- pass
+FileType = file
XRangeType = type(xrange(0))
try: