We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb86c36 commit 54aa1f9Copy full SHA for 54aa1f9
boolean/boolean.py
@@ -26,14 +26,21 @@
26
27
import inspect
28
import itertools
29
-from operator import and_ as and_operator, or_ as or_operator
+from operator import and_ as and_operator
30
+from operator import or_ as or_operator
31
32
33
try:
34
basestring # Python 2
35
except NameError:
36
basestring = str # Python 3
37
38
+try:
39
+ reduce # Python 2
40
+except NameError:
41
+ from functools import reduce # Python 3
42
+
43
44
# Set to True to enable tracing for parsing
45
TRACE_PARSE = False
46
0 commit comments