mirror of
https://github.com/python/cpython.git
synced 2025-09-26 02:10:18 +00:00
No need to import __builtin__, spotted by Skip.
This commit is contained in:
parent
0ec2744fb8
commit
247e16ef80
1 changed files with 4 additions and 4 deletions
|
@ -387,10 +387,10 @@ if sys.version_info[:2] < (2, 3):
|
||||||
True = bool(1)
|
True = bool(1)
|
||||||
False = bool(0)
|
False = bool(0)
|
||||||
else:
|
else:
|
||||||
import __builtin__
|
# Bind the boolean builtins to local names
|
||||||
True = __builtin__.True
|
True = True
|
||||||
False = __builtin__.False
|
False = False
|
||||||
bool = __builtin__.bool
|
bool = bool
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue