summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-13 05:38:56 +0000
committerTim Peters <tim.peters@gmail.com>2001-09-13 05:38:56 +0000
commit59c9a645e2f44b0b546225678d704787d9eae35d (patch)
tree56179a5250e747d330a93b4f5fe66eeb65859329 /Lib/types.py
parent93a696f49171c0593b23817bbf56ab44269a9587 (diff)
downloadcpython-git-59c9a645e2f44b0b546225678d704787d9eae35d.tar.gz
SF bug [#460467] file objects should be subclassable.
Preliminary support. What's here works, but needs fine-tuning.
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: