mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
10 lines
245 B
Python
10 lines
245 B
Python
"boolcheck - import this module to ensure True, False, bool() builtins exist."
|
|
try:
|
|
True
|
|
except NameError:
|
|
import __builtin__
|
|
__builtin__.True = 1
|
|
__builtin__.False = 0
|
|
from operator import truth
|
|
__builtin__.bool = truth
|