summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-17 18:10:56 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-17 18:10:56 +0100
commitbb8f7f0f6a7bf8440b16f5c17724a5b197b5e205 (patch)
tree553072cb6633f387e6f94984ee89e8b9f0e88006 /protocols.py
parentcd39af0ef8fb8c1d4f9c9c3cfe2cdf86760ef09a (diff)
downloadastroid-git-bb8f7f0f6a7bf8440b16f5c17724a5b197b5e205.tar.gz
pylint fixes
--HG-- branch : _ast_compat
Diffstat (limited to 'protocols.py')
-rw-r--r--protocols.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/protocols.py b/protocols.py
index 595f3971..edabb112 100644
--- a/protocols.py
+++ b/protocols.py
@@ -60,18 +60,18 @@ nodes.Const.infer_unary_op = const_infer_unary_op
# binary operations ###########################################################
-BIN_OP_IMPL = {'+': lambda a,b: a+b,
- '-': lambda a,b: a-b,
- '/': lambda a,b: a/b,
- '//': lambda a,b: a//b,
- '*': lambda a,b: a*b,
- '**': lambda a,b: a**b,
- '%': lambda a,b: a%b,
- '&': lambda a,b: a&b,
- '|': lambda a,b: a|b,
- '^': lambda a,b: a^b,
- '<<': lambda a,b: a^b,
- '>>': lambda a,b: a^b,
+BIN_OP_IMPL = {'+': lambda a,b: a + b,
+ '-': lambda a,b: a - b,
+ '/': lambda a,b: a / b,
+ '//': lambda a,b: a // b,
+ '*': lambda a,b: a * b,
+ '**': lambda a,b: a ** b,
+ '%': lambda a,b: a % b,
+ '&': lambda a,b: a & b,
+ '|': lambda a,b: a | b,
+ '^': lambda a,b: a ^ b,
+ '<<': lambda a,b: a ^ b,
+ '>>': lambda a,b: a ^ b,
}
def const_infer_binary_op(self, operator, other, context):
@@ -417,7 +417,7 @@ def dict_getitem(self, key):
for inferedkey in self.items[i].infer():
if inferedkey is YES:
continue
- if isinstance(inferedkey, Const) and inferekey.value == key:
+ if isinstance(inferedkey, Const) and inferedkey.value == key:
return self.items[i+1]
raise IndexError(key)
nodes.Dict.getitem = dict_getitem