From 1a3541e3aaa4b15983c037d632b343f19e46266d Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 7 Jan 2014 17:46:22 +0100 Subject: [PATCH] removed from 'from __future__ import with_statement' imports, they are not needed anymore (python 2.5 is no longer supported) --- jedi/api/__init__.py | 2 -- jedi/cache.py | 2 -- jedi/evaluate/__init__.py | 2 -- jedi/evaluate/builtin.py | 1 - jedi/evaluate/imports.py | 2 -- jedi/parser/representation.py | 2 -- jedi/refactoring.py | 2 -- 7 files changed, 13 deletions(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index ebe890ea..b78a9d11 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -8,8 +8,6 @@ possible. .. warning:: Please, note that Jedi is **not thread safe**. """ -from __future__ import with_statement - import re import os import warnings diff --git a/jedi/cache.py b/jedi/cache.py index 7535a774..7b260d79 100644 --- a/jedi/cache.py +++ b/jedi/cache.py @@ -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 these variables are being cleaned after every API usage. """ -from __future__ import with_statement - import time import os import sys diff --git a/jedi/evaluate/__init__.py b/jedi/evaluate/__init__.py index bcf836c0..f08685b0 100644 --- a/jedi/evaluate/__init__.py +++ b/jedi/evaluate/__init__.py @@ -68,8 +68,6 @@ backtracking algorithm. .. todo:: nonlocal statement, needed or can be ignored? (py3k) """ -from __future__ import with_statement - import sys import itertools diff --git a/jedi/evaluate/builtin.py b/jedi/evaluate/builtin.py index 0dc410cf..19e0147c 100644 --- a/jedi/evaluate/builtin.py +++ b/jedi/evaluate/builtin.py @@ -21,7 +21,6 @@ possible to access functions like ``list`` and ``int`` directly, the same way |jedi| access other functions. """ -from __future__ import with_statement from jedi._compatibility import exec_function, is_py3k import re diff --git a/jedi/evaluate/imports.py b/jedi/evaluate/imports.py index c2aa22f7..7176609d 100644 --- a/jedi/evaluate/imports.py +++ b/jedi/evaluate/imports.py @@ -11,8 +11,6 @@ correct implementation is delegated to _compatibility. This module also supports import autocompletion, which means to complete statements like ``from datetim`` (curser at the end would return ``datetime``). """ -from __future__ import with_statement - import os import pkgutil import sys diff --git a/jedi/parser/representation.py b/jedi/parser/representation.py index eff00198..b9feea5e 100644 --- a/jedi/parser/representation.py +++ b/jedi/parser/representation.py @@ -33,8 +33,6 @@ statements in this scope. Check this out: See also :attr:`Scope.subscopes` and :attr:`Scope.statements`. """ -from __future__ import with_statement - import os import re from inspect import cleandoc diff --git a/jedi/refactoring.py b/jedi/refactoring.py index 7ff38cba..cb7667c2 100644 --- a/jedi/refactoring.py +++ b/jedi/refactoring.py @@ -12,8 +12,6 @@ following functions (sometimes bug-prone): - extract variable - inline variable """ -from __future__ import with_statement - import difflib from jedi import common