diff options
| author | Ceridwen <ceridwenv@gmail.com> | 2016-03-29 11:07:35 -0400 |
|---|---|---|
| committer | Ceridwen <ceridwenv@gmail.com> | 2016-03-29 11:07:35 -0400 |
| commit | 3aa99786327dbb366b02123468fece10e44ceb9c (patch) | |
| tree | 03a51483f00baeb4d579c910ecf06621715d15c3 | |
| parent | 0aa2025afa101a19aa7d4ec2daa78aa7fc8e6c18 (diff) | |
| download | astroid-git-3aa99786327dbb366b02123468fece10e44ceb9c.tar.gz | |
Clean up some comments and docstrings
| -rw-r--r-- | astroid/interpreter/scope.py | 2 | ||||
| -rw-r--r-- | astroid/tree/zipper.py | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/astroid/interpreter/scope.py b/astroid/interpreter/scope.py index 47fb3a0c..09aec5aa 100644 --- a/astroid/interpreter/scope.py +++ b/astroid/interpreter/scope.py @@ -26,8 +26,6 @@ from astroid.tree import treeabc from astroid import util
-# import pdb; pdb.set_trace()
-
@util.singledispatch
def _scope_by_parent(parent, node):
"""Detect the scope of the *node* by parent's rules.
diff --git a/astroid/tree/zipper.py b/astroid/tree/zipper.py index 51360851..3b211622 100644 --- a/astroid/tree/zipper.py +++ b/astroid/tree/zipper.py @@ -123,7 +123,7 @@ class Zipper(wrapt.ObjectProxy): def __init__(self, focus, path=None, _init=wrapt.ObjectProxy.__init__): '''Make a new zipper. - Args: + Arguments: focus (base.NodeNG, collections.Sequence): The focus for this zipper, will be assigned to self.__wrapped__ by wrapt.ObjectProxy's __init__. @@ -275,7 +275,7 @@ class Zipper(wrapt.ObjectProxy): def preorder_descendants(self, dont_recurse_on=None): '''Iterates over the descendants of the focus in prefix order. - Args: + Arguments: dont_recurse_on (base.NodeNG): If not None, will not include nodes of this type or types or any of the descendants of those nodes. ''' @@ -294,7 +294,7 @@ class Zipper(wrapt.ObjectProxy): def postorder_descendants(self, dont_recurse_on=None): '''Iterates over the descendants of the focus in postfix order. - Args: + Arguments: dont_recurse_on (base.NodeNG): If not None, will not include nodes of this type or types or any of the descendants of those nodes. ''' @@ -320,7 +320,7 @@ class Zipper(wrapt.ObjectProxy): '''Iterates over the descendants of the focus of a given type in prefix order. - Args: + Arguments: skip_class (base.NodeNG, tuple(base.NodeNG)): If not None, will not include nodes of this type or types or any of the descendants of those nodes. @@ -413,12 +413,12 @@ class Zipper(wrapt.ObjectProxy): def replace(self, focus): '''Replaces the existing node at the focus. - Args: + Arguments: focus (base.NodeNG, collections.Sequence): The object to replace the focus with. ''' return type(self)(focus=focus, path=self._self_path._replace(changed=True)) - + # def edit(self, *args, **kws): # return type(self)(focus=self.__wrapped__.make_focus(*args, **kws), # path=self._self_path._replace(changed=True)) |
