1
0
forked from VimPlug/jedi

corrected some doctest problems

This commit is contained in:
David Halter
2013-04-28 21:10:29 +04:30
parent 9988c49097
commit 4b36fb2f6f
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ def get_names_of_scope(scope, position=None, star_search=True,
... def func(): ... def func():
... y = None ... y = None
... ''') ... ''')
>>> scope = parser.scope.subscopes[0] >>> scope = parser.module.subscopes[0]
>>> scope >>> scope
<Function: func@3-6> <Function: func@3-6>

View File

@@ -22,7 +22,7 @@ The easiest way to play with this module is to use :class:`parsing.Parser`.
>>> parser = Parser('import os', 'example.py') >>> parser = Parser('import os', 'example.py')
>>> submodule = parser.scope >>> submodule = parser.scope
>>> submodule >>> submodule
<SubModule: example.py@1-2> <SubModule: example.py@1-1>
Any subclasses of :class:`Scope`, including :class:`SubModule` has Any subclasses of :class:`Scope`, including :class:`SubModule` has
attribute :attr:`imports <Scope.imports>`. This attribute has import attribute :attr:`imports <Scope.imports>`. This attribute has import