summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node_classes.py8
-rw-r--r--protocols.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/node_classes.py b/node_classes.py
index b16ad3df..889479d0 100644
--- a/node_classes.py
+++ b/node_classes.py
@@ -482,7 +482,7 @@ class Dict(NodeNG, Instance):
_astng_fields = ('items',)
def __init__(self, items=None):
- if items == None:
+ if items is None:
self.items = []
else:
self.items = [(const_factory(k), const_factory(v))
@@ -655,10 +655,10 @@ class Keyword(NodeNG):
class List(NodeNG, Instance, ParentAssignTypeMixin):
"""class representing a List node"""
- _astng_fields = ('elts',)
+ _astng_fields = ('elts',)
def __init__(self, elts=None):
- if elts == None:
+ if elts is None:
self.elts = []
else:
self.elts = [const_factory(e) for e in elts]
@@ -808,7 +808,7 @@ class Tuple(NodeNG, Instance, ParentAssignTypeMixin):
_astng_fields = ('elts',)
def __init__(self, elts=None):
- if elts == None:
+ if elts is None:
self.elts = []
else:
self.elts = [const_factory(e) for e in elts]
diff --git a/protocols.py b/protocols.py
index 6e7415d6..34bbe759 100644
--- a/protocols.py
+++ b/protocols.py
@@ -195,7 +195,7 @@ def for_assigned_stmts(self, node, context=None, asspath=None):
yield item
else:
for infered in _resolve_looppart(self.iter.infer(context),
- asspath, context):
+ asspath, context):
yield infered
nodes.For.assigned_stmts = raise_if_nothing_infered(for_assigned_stmts)