summaryrefslogtreecommitdiffstats
path: root/Tools/idle/boolcheck.py
blob: f682232e4958784a046d593cfe2b27d53a1abe86 (plain)
1
2
3
4
5
6
7
8
9
"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