File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,9 +414,7 @@ class open:
414414 def __new__ (cls , * args , ** kwds ):
415415 return io .open (* args , ** kwds )
416416 __builtin__ .classic_open = __builtin__ .open
417- __builtin__ .classic_file = __builtin__ .file
418417 __builtin__ .open = open
419- __builtin__ .file = open
420418 sys .stdin = io .open (0 , "r" )
421419 sys .stdout = io .open (1 , "w" )
422420 sys .stderr = io .open (2 , "w" )
Original file line number Diff line number Diff line change 2222except NameError :
2323 pass
2424
25- StringType = str
26-
27- # StringTypes is already outdated. Instead of writing "type(x) in
28- # types.StringTypes", you should use "isinstance(x, basestring)". But
29- # we keep around for compatibility with Python 2.2.
30- try :
31- UnicodeType = str
32- StringTypes = (StringType , UnicodeType )
33- except NameError :
34- StringTypes = (StringType ,)
35-
3625BufferType = buffer
3726
3827TupleType = tuple
@@ -62,7 +51,6 @@ def _m(self): pass
6251BuiltinMethodType = type ([].append ) # Same as BuiltinFunctionType
6352
6453ModuleType = type (sys )
65- FileType = file
6654
6755try :
6856 raise TypeError
Original file line number Diff line number Diff line change @@ -2040,7 +2040,6 @@ _PyBuiltin_Init(void)
20402040#endif
20412041 SETBUILTIN ("dict" , & PyDict_Type );
20422042 SETBUILTIN ("enumerate" , & PyEnum_Type );
2043- SETBUILTIN ("file" , & PyFile_Type );
20442043 SETBUILTIN ("float" , & PyFloat_Type );
20452044 SETBUILTIN ("frozenset" , & PyFrozenSet_Type );
20462045 SETBUILTIN ("property" , & PyProperty_Type );
You can’t perform that action at this time.
0 commit comments