mirror of
https://github.com/python/cpython.git
synced 2026-05-23 12:53:22 -04:00
No need to import __builtin__, spotted by Skip.
This commit is contained in:
+4
-4
@@ -387,10 +387,10 @@ if sys.version_info[:2] < (2, 3):
|
||||
True = bool(1)
|
||||
False = bool(0)
|
||||
else:
|
||||
import __builtin__
|
||||
True = __builtin__.True
|
||||
False = __builtin__.False
|
||||
bool = __builtin__.bool
|
||||
# Bind the boolean builtins to local names
|
||||
True = True
|
||||
False = False
|
||||
bool = bool
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user