From 1cfe5c29451c7f0fc98d3c8a682d9bfbc6b04755 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 15 Apr 2017 01:53:58 +0200 Subject: [PATCH] Python3Method is not needed anymore in the parser. --- jedi/evaluate/context.py | 1 - jedi/parser/python/tree.py | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/jedi/evaluate/context.py b/jedi/evaluate/context.py index 03a869de..58872527 100644 --- a/jedi/evaluate/context.py +++ b/jedi/evaluate/context.py @@ -39,7 +39,6 @@ class Context(object): def eval_stmt(self, stmt, seek_name=None): return self.evaluator.eval_statement(self, stmt, seek_name) - @Python3Method def eval_trailer(self, types, trailer): return self.evaluator.eval_trailer(self, types, trailer) diff --git a/jedi/parser/python/tree.py b/jedi/parser/python/tree.py index 1dcc215b..e3896cef 100644 --- a/jedi/parser/python/tree.py +++ b/jedi/parser/python/tree.py @@ -31,8 +31,7 @@ from inspect import cleandoc from itertools import chain import textwrap -from jedi._compatibility import (Python3Method, is_py3, utf8_repr, - literal_eval, unicode) +from jedi._compatibility import is_py3, utf8_repr, literal_eval, unicode from jedi.parser.tree import Node, BaseNode, Leaf, ErrorNode, ErrorLeaf @@ -138,7 +137,6 @@ class PythonMixin(object): # Default is not being a scope. Just inherit from Scope. return False - @Python3Method def name_for_position(self, position): for c in self.children: if isinstance(c, Leaf): @@ -150,7 +148,6 @@ class PythonMixin(object): return result return None - @Python3Method def get_statement_for_position(self, pos): for c in self.children: if c.start_pos <= pos <= c.end_pos: @@ -322,7 +319,6 @@ class Scope(PythonBaseNode, DocstringMixin): def imports(self): return self._search_in_scope(Import) - @Python3Method def _search_in_scope(self, typ): def scan(children): elements = []