forked from VimPlug/jedi
removed from 'from __future__ import with_statement' imports, they are not needed anymore (python 2.5 is no longer supported)
This commit is contained in:
@@ -8,8 +8,6 @@ possible.
|
|||||||
|
|
||||||
.. warning:: Please, note that Jedi is **not thread safe**.
|
.. warning:: Please, note that Jedi is **not thread safe**.
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ This module is one of the reasons why |jedi| is not thread-safe. As you can see
|
|||||||
there are global variables, which are holding the cache information. Some of
|
there are global variables, which are holding the cache information. Some of
|
||||||
these variables are being cleaned after every API usage.
|
these variables are being cleaned after every API usage.
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -68,8 +68,6 @@ backtracking algorithm.
|
|||||||
|
|
||||||
.. todo:: nonlocal statement, needed or can be ignored? (py3k)
|
.. todo:: nonlocal statement, needed or can be ignored? (py3k)
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ possible to access functions like ``list`` and ``int`` directly, the same way
|
|||||||
|jedi| access other functions.
|
|jedi| access other functions.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
from jedi._compatibility import exec_function, is_py3k
|
from jedi._compatibility import exec_function, is_py3k
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ correct implementation is delegated to _compatibility.
|
|||||||
This module also supports import autocompletion, which means to complete
|
This module also supports import autocompletion, which means to complete
|
||||||
statements like ``from datetim`` (curser at the end would return ``datetime``).
|
statements like ``from datetim`` (curser at the end would return ``datetime``).
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pkgutil
|
import pkgutil
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ statements in this scope. Check this out:
|
|||||||
|
|
||||||
See also :attr:`Scope.subscopes` and :attr:`Scope.statements`.
|
See also :attr:`Scope.subscopes` and :attr:`Scope.statements`.
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from inspect import cleandoc
|
from inspect import cleandoc
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ following functions (sometimes bug-prone):
|
|||||||
- extract variable
|
- extract variable
|
||||||
- inline variable
|
- inline variable
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import difflib
|
import difflib
|
||||||
|
|
||||||
from jedi import common
|
from jedi import common
|
||||||
|
|||||||
Reference in New Issue
Block a user