diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index d7d4b827..f06327be 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -2,7 +2,6 @@ This module is here to ensure compatibility of Windows/Linux/MacOS and different Python versions. """ -from __future__ import print_function import errno import sys import os diff --git a/jedi/inference/compiled/access.py b/jedi/inference/compiled/access.py index cd5616cd..ce524ff1 100644 --- a/jedi/inference/compiled/access.py +++ b/jedi/inference/compiled/access.py @@ -1,4 +1,3 @@ -from __future__ import print_function import inspect import types import sys diff --git a/jedi/inference/compiled/subprocess/functions.py b/jedi/inference/compiled/subprocess/functions.py index 23c5c827..5c1513f9 100644 --- a/jedi/inference/compiled/subprocess/functions.py +++ b/jedi/inference/compiled/subprocess/functions.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import os import re diff --git a/jedi/utils.py b/jedi/utils.py index 9d675174..631cf473 100644 --- a/jedi/utils.py +++ b/jedi/utils.py @@ -2,7 +2,6 @@ Utilities for end-users. """ -from __future__ import absolute_import import __main__ from collections import namedtuple import logging diff --git a/sith.py b/sith.py index dcdc39e3..3b286894 100755 --- a/sith.py +++ b/sith.py @@ -44,7 +44,6 @@ Options: --pudb Launch pudb when error is raised. """ -from __future__ import print_function, division, unicode_literals from docopt import docopt import json diff --git a/test/examples/absolute_import/local_module.py b/test/examples/absolute_import/local_module.py deleted file mode 100644 index aa4bf007..00000000 --- a/test/examples/absolute_import/local_module.py +++ /dev/null @@ -1,14 +0,0 @@ -""" -This is a module that imports the *standard library* unittest, -despite there being a local "unittest" module. It specifies that it -wants the stdlib one with the ``absolute_import`` __future__ import. - -The twisted equivalent of this module is ``twisted.trial._synctest``. -""" -from __future__ import absolute_import - -import unittest - - -class Assertions(unittest.TestCase): - pass diff --git a/test/examples/absolute_import/unittest.py b/test/examples/absolute_import/unittest.py deleted file mode 100644 index eee1e937..00000000 --- a/test/examples/absolute_import/unittest.py +++ /dev/null @@ -1,14 +0,0 @@ -""" -This is a module that shadows a builtin (intentionally). - -It imports a local module, which in turn imports stdlib unittest (the -name shadowed by this module). If that is properly resolved, there's -no problem. However, if jedi doesn't understand absolute_imports, it -will get this module again, causing infinite recursion. -""" -from local_module import Assertions - - -class TestCase(Assertions): - def test(self): - self.assertT diff --git a/test/refactor.py b/test/refactor.py index 1025d95d..582beeb6 100644 --- a/test/refactor.py +++ b/test/refactor.py @@ -4,7 +4,6 @@ Refactoring tests work a little bit similar to integration tests. But the idea is here to compare two versions of code. If you want to add a new test case, just look at the existing ones in the ``test/refactor`` folder and copy them. """ -from __future__ import with_statement import os import platform import re diff --git a/test/test_inference/test_absolute_import.py b/test/test_inference/test_absolute_import.py deleted file mode 100644 index 72017dc9..00000000 --- a/test/test_inference/test_absolute_import.py +++ /dev/null @@ -1,12 +0,0 @@ -""" -Tests ``from __future__ import absolute_import`` (only important for -Python 2.X) -""" -from jedi import Project -from .. import helpers - - -def test_can_complete_when_shadowing(Script): - path = helpers.get_example_dir('absolute_import', 'unittest.py') - script = Script(path=path, project=Project(helpers.get_example_dir('absolute_import'))) - assert script.complete()