1
0
forked from VimPlug/jedi

Remove asserts and calculate them dynamically.

This commit is contained in:
Dave Halter
2015-02-05 20:16:55 +01:00
parent 0a3797cf6e
commit 8125d5f562
5 changed files with 15 additions and 26 deletions

View File

@@ -88,7 +88,7 @@ class Generator(use_metaclass(CachedMetaClass, IterableWrapper, GeneratorMixin))
def __getattr__(self, name):
if name not in ['start_pos', 'end_pos', 'parent', 'get_imports',
'asserts', 'doc', 'docstr', 'get_parent_until',
'doc', 'docstr', 'get_parent_until',
'get_code', 'subscopes']:
raise AttributeError("Accessing %s of %s is not allowed."
% (self, name))