diff options
Diffstat (limited to 'protocols.py')
-rw-r--r-- | protocols.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols.py b/protocols.py index e66b802c..7ce1faa6 100644 --- a/protocols.py +++ b/protocols.py @@ -70,7 +70,7 @@ BIN_OP_IMPL = {'+': lambda a, b: a + b, '^': lambda a, b: a ^ b, '<<': lambda a, b: a << b, '>>': lambda a, b: a >> b, - } + } for key, impl in BIN_OP_IMPL.items(): BIN_OP_IMPL[key+'='] = impl @@ -166,7 +166,7 @@ def _resolve_looppart(parts, asspath, context): assigned = stmt.getitem(index, context) except (AttributeError, IndexError): continue - except TypeError, exc: # stmt is unsubscriptable Const + except TypeError: # stmt is unsubscriptable Const continue if not asspath: # we achieved to resolved the assignment path, |