summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-27 19:57:01 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-27 19:57:01 (GMT)
commit59977a677c9609c3e0e05bbd2ffb8344e4c66c8e (patch)
treef4afa41136a4b211e6b1fbaf1b43a302db27f995 /Lib
parent415ed937c21f0d563fb11a20189831b908673462 (diff)
downloadcpython-59977a677c9609c3e0e05bbd2ffb8344e4c66c8e.zip
cpython-59977a677c9609c3e0e05bbd2ffb8344e4c66c8e.tar.gz
cpython-59977a677c9609c3e0e05bbd2ffb8344e4c66c8e.tar.bz2
Make or_test similar to test, not testlist.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/compiler/transformer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py
index 3f631fe..ae9b819 100644
--- a/Lib/compiler/transformer.py
+++ b/Lib/compiler/transformer.py
@@ -945,7 +945,7 @@ class Transformer:
# loop to avoid trivial recursion
while 1:
t = node[0]
- if t in (symbol.exprlist, symbol.testlist, symbol.testlist_safe, symbol.or_test, symbol.testlist_gexp):
+ if t in (symbol.exprlist, symbol.testlist, symbol.testlist_safe, symbol.testlist_gexp):
if len(node) > 2:
return self.com_assign_tuple(node, assigning)
node = node[1]
@@ -1416,6 +1416,7 @@ if hasattr(symbol, 'yield_expr'):
_assign_types = [
symbol.test,
+ symbol.or_test,
symbol.and_test,
symbol.not_test,
symbol.comparison,