diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-11 20:34:40 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-11 20:34:40 +0300 |
commit | 6148be4118a761d01e76ecbc8c2701dd97e9bc0b (patch) | |
tree | 3299862d3dd07f5c6ce9ee6c28b29fe7d1a14b6e | |
parent | e950e787428f044ee308c9084102825b9ec7362d (diff) | |
download | astroid-6148be4118a761d01e76ecbc8c2701dd97e9bc0b.tar.gz |
Remove doctype and future imports which aren't useful.
-rw-r--r-- | astroid/__init__.py | 1 | ||||
-rw-r--r-- | astroid/bases.py | 2 | ||||
-rw-r--r-- | astroid/builder.py | 1 | ||||
-rw-r--r-- | astroid/context.py | 2 | ||||
-rw-r--r-- | astroid/exceptions.py | 2 | ||||
-rw-r--r-- | astroid/inference.py | 2 | ||||
-rw-r--r-- | astroid/manager.py | 1 | ||||
-rw-r--r-- | astroid/modutils.py | 1 | ||||
-rw-r--r-- | astroid/scoped_nodes.py | 2 | ||||
-rw-r--r-- | astroid/tests/unittest_objects.py | 2 |
10 files changed, 1 insertions, 15 deletions
diff --git a/astroid/__init__.py b/astroid/__init__.py index 25f00bc..f67bbf9 100644 --- a/astroid/__init__.py +++ b/astroid/__init__.py @@ -39,7 +39,6 @@ Main modules are: * builder contains the class responsible to build astroid trees """ -__doctype__ = "restructuredtext en" import sys import re diff --git a/astroid/bases.py b/astroid/bases.py index 51fab61..7df3641 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -19,8 +19,6 @@ inference utils. """ -from __future__ import print_function - import collections import sys diff --git a/astroid/builder.py b/astroid/builder.py index ced86d3..9bb78b1 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -20,7 +20,6 @@ The builder is not thread safe and can't be used to parse different sources at the same time. """ -from __future__ import with_statement import _ast import os diff --git a/astroid/context.py b/astroid/context.py index 44f54e3..6497e7d 100644 --- a/astroid/context.py +++ b/astroid/context.py @@ -15,8 +15,8 @@ # # You should have received a copy of the GNU Lesser General Public License along # with astroid. If not, see <http://www.gnu.org/licenses/>. - """Various context related utilities, including inference and call contexts.""" + import contextlib import pprint diff --git a/astroid/exceptions.py b/astroid/exceptions.py index 9b18d85..b308258 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -19,8 +19,6 @@ """ -__doctype__ = "restructuredtext en" - class AstroidError(Exception): """base exception class for all astroid related exceptions""" diff --git a/astroid/inference.py b/astroid/inference.py index 58194fa..010607c 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -20,8 +20,6 @@ # pylint: disable=no-value-for-parameter; Pylint FP #629, please remove afterwards. -from __future__ import print_function - import functools import itertools import operator diff --git a/astroid/manager.py b/astroid/manager.py index d78515d..07d7543 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -19,7 +19,6 @@ possible by providing a class responsible to get astroid representation from various source and using a cache of built modules) """ -from __future__ import print_function import imp import os diff --git a/astroid/modutils.py b/astroid/modutils.py index 3798c2f..e127d84 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -26,7 +26,6 @@ :type BUILTIN_MODULES: dict :var BUILTIN_MODULES: dictionary with builtin module names has key """ -from __future__ import with_statement import imp import os diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py index b1d5042..6966653 100644 --- a/astroid/scoped_nodes.py +++ b/astroid/scoped_nodes.py @@ -22,8 +22,6 @@ new local scope in the language definition : Module, ClassDef, FunctionDef (and Lambda, GeneratorExp, DictComp and SetComp to some extent). """ -from __future__ import print_function - import io import itertools import warnings diff --git a/astroid/tests/unittest_objects.py b/astroid/tests/unittest_objects.py index d44446b..e0a04d5 100644 --- a/astroid/tests/unittest_objects.py +++ b/astroid/tests/unittest_objects.py @@ -16,8 +16,6 @@ # You should have received a copy of the GNU Lesser General Public License along
# with astroid. If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
-
import unittest
from astroid import bases
|