Tony Lownds | f53dec2 | 2002-12-20 04:24:43 +0000 | [diff] [blame] | 1 | "boolcheck - import this module to ensure True, False, bool() builtins exist." |
2 | try: | ||||
3 | True | ||||
4 | except NameError: | ||||
5 | import __builtin__ | ||||
6 | __builtin__.True = 1 | ||||
7 | __builtin__.False = 0 | ||||
8 | from operator import truth | ||||
9 | __builtin__.bool = truth | ||||
10 |