forked from VimPlug/jedi
Move a repr function
This commit is contained in:
@@ -151,9 +151,6 @@ class AbstractContext(object):
|
|||||||
finally:
|
finally:
|
||||||
del predefined[flow_scope]
|
del predefined[flow_scope]
|
||||||
|
|
||||||
def __repr__(self):
|
|
||||||
return '%s(%s)' % (self.__class__.__name__, self._value)
|
|
||||||
|
|
||||||
|
|
||||||
class ValueContext(AbstractContext):
|
class ValueContext(AbstractContext):
|
||||||
"""
|
"""
|
||||||
@@ -361,6 +358,9 @@ class CompForContext(TreeContextMixin, AbstractContext):
|
|||||||
def py__name__(self):
|
def py__name__(self):
|
||||||
return '<comprehension context>'
|
return '<comprehension context>'
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '%s(%s)' % (self.__class__.__name__, self.tree_node)
|
||||||
|
|
||||||
|
|
||||||
class CompiledContext(ValueContext):
|
class CompiledContext(ValueContext):
|
||||||
def get_filters(self, until_position=None, origin_scope=None):
|
def get_filters(self, until_position=None, origin_scope=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user