forked from VimPlug/jedi
corrected some doctest problems
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user