diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-13 05:38:56 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-13 05:38:56 +0000 |
commit | 94b8f84e2d9e9ebc9115a6544fb562e2c68296b7 (patch) | |
tree | 24d80635212ddb6a58c5c9f5e1a3832a54da34b7 /Lib/types.py | |
parent | 65949dce5bdaed2cc323c26010d0e247bdbf99e2 (diff) | |
download | cpython-94b8f84e2d9e9ebc9115a6544fb562e2c68296b7.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.py | 7 |
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: |