diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-01-11 14:53:07 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-01-11 14:53:07 +0100 |
commit | 7bbae9019bd7474f66aa2ab878cbe3565f6dd516 (patch) | |
tree | 9154bf8f4517bfa581f91ad866d76fbbd341887f | |
parent | 1617a8ea349cebaaa98505b3c0c6c3f3e39768f7 (diff) | |
download | astroid-git-7bbae9019bd7474f66aa2ab878cbe3565f6dd516.tar.gz |
cleanup
-rw-r--r-- | node_classes.py | 8 | ||||
-rw-r--r-- | protocols.py | 2 |
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) |