From 4b36fb2f6f96d4e244ee782e455f0c1035703551 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 28 Apr 2013 21:10:29 +0430 Subject: [PATCH] corrected some doctest problems --- jedi/evaluate.py | 2 +- jedi/parsing_representation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/evaluate.py b/jedi/evaluate.py index 0d6f1df0..8e8cc921 100644 --- a/jedi/evaluate.py +++ b/jedi/evaluate.py @@ -131,7 +131,7 @@ def get_names_of_scope(scope, position=None, star_search=True, ... def func(): ... y = None ... ''') - >>> scope = parser.scope.subscopes[0] + >>> scope = parser.module.subscopes[0] >>> scope diff --git a/jedi/parsing_representation.py b/jedi/parsing_representation.py index d51f07e2..55d4904f 100644 --- a/jedi/parsing_representation.py +++ b/jedi/parsing_representation.py @@ -22,7 +22,7 @@ The easiest way to play with this module is to use :class:`parsing.Parser`. >>> parser = Parser('import os', 'example.py') >>> submodule = parser.scope >>> submodule - + Any subclasses of :class:`Scope`, including :class:`SubModule` has attribute :attr:`imports `. This attribute has import