forked from VimPlug/jedi
first steps to world domination -> removal of the hackish sys.path modifications
This commit is contained in:
@@ -36,14 +36,6 @@ good text editor, while still having very good IDE features for Python.
|
|||||||
|
|
||||||
__version__ = 0, 7, 1, 'alpha1'
|
__version__ = 0, 7, 1, 'alpha1'
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
# python imports are hell sometimes. Especially the combination of relative
|
|
||||||
# imports and circular imports... Just avoid it:
|
|
||||||
sys.path.insert(0, __path__[0])
|
|
||||||
|
|
||||||
from .api import Script, Interpreter, NotFoundError, set_debug_function
|
from .api import Script, Interpreter, NotFoundError, set_debug_function
|
||||||
from .api import preload_module, defined_names
|
from .api import preload_module, defined_names
|
||||||
from . import settings
|
from . import settings
|
||||||
|
|
||||||
sys.path.pop(0)
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
import sys
|
import sys
|
||||||
import contextlib
|
import contextlib
|
||||||
import functools
|
import functools
|
||||||
import tokenizer as tokenize
|
|
||||||
|
|
||||||
|
from jedi.parser import tokenizer as tokenize
|
||||||
from jedi._compatibility import next, reraise
|
from jedi._compatibility import next, reraise
|
||||||
from jedi import settings
|
from jedi import settings
|
||||||
|
|
||||||
|
|||||||
@@ -79,10 +79,10 @@ from jedi import cache
|
|||||||
from jedi.parser import representation as pr
|
from jedi.parser import representation as pr
|
||||||
from jedi import debug
|
from jedi import debug
|
||||||
from jedi.evaluate import representation as er
|
from jedi.evaluate import representation as er
|
||||||
|
from jedi.evaluate import builtin
|
||||||
|
from jedi.evaluate import imports
|
||||||
import recursion
|
import recursion
|
||||||
import docstrings
|
import docstrings
|
||||||
import builtin
|
|
||||||
import imports
|
|
||||||
import dynamic
|
import dynamic
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ from jedi import cache
|
|||||||
from jedi import helpers
|
from jedi import helpers
|
||||||
from jedi import debug
|
from jedi import debug
|
||||||
from jedi import common
|
from jedi import common
|
||||||
|
from jedi.evaluate import imports
|
||||||
|
from jedi.evaluate import builtin
|
||||||
import recursion
|
import recursion
|
||||||
import docstrings
|
import docstrings
|
||||||
import imports
|
|
||||||
import builtin
|
|
||||||
import dynamic
|
import dynamic
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ complexity of the ``Parser`` (there's another parser sitting inside
|
|||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import tokenizer as tokenize
|
|
||||||
import keyword
|
import keyword
|
||||||
|
|
||||||
from jedi._compatibility import next, StringIO
|
from jedi._compatibility import next, StringIO
|
||||||
@@ -25,6 +24,7 @@ from jedi import debug
|
|||||||
from jedi import common
|
from jedi import common
|
||||||
from jedi.parser import representation as pr
|
from jedi.parser import representation as pr
|
||||||
from jedi.parser import token as token_pr
|
from jedi.parser import token as token_pr
|
||||||
|
from jedi.parser import tokenizer as tokenize
|
||||||
|
|
||||||
|
|
||||||
class Parser(object):
|
class Parser(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user