diff --git a/bin/autoipython b/bin/autoipython index 2187b9f1..9b63c059 100755 --- a/bin/autoipython +++ b/bin/autoipython @@ -40,8 +40,6 @@ Or, you can manually add 'pyflyby.enable_auto_importer()' wherever you prefer. # Copyright (C) 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement -from __future__ import print_function import sys diff --git a/bin/collect-exports b/bin/collect-exports index 75162d34..3c9a9d7f 100755 --- a/bin/collect-exports +++ b/bin/collect-exports @@ -14,8 +14,6 @@ Print the result to stdout. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement -from __future__ import print_function import sys diff --git a/bin/collect-imports b/bin/collect-imports index 311fa93e..63a3e0e1 100755 --- a/bin/collect-imports +++ b/bin/collect-imports @@ -11,7 +11,6 @@ block of import statements. Print the result to stdout. # Copyright (C) 2011, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement import re import sys diff --git a/bin/find-import b/bin/find-import index e97dcd8a..7de432d8 100755 --- a/bin/find-import +++ b/bin/find-import @@ -8,8 +8,6 @@ Prints how to import given name(s). # Copyright (C) 2011, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement -from __future__ import print_function from pyflyby._cmdline import parse_args, syntax from pyflyby._importdb import ImportDB diff --git a/bin/list-bad-xrefs b/bin/list-bad-xrefs index a2d103f9..40f42416 100755 --- a/bin/list-bad-xrefs +++ b/bin/list-bad-xrefs @@ -14,8 +14,6 @@ Similar to running C{epydoc -v}, but: # Copyright (C) 2011, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement -from __future__ import print_function from pyflyby._cmdline import parse_args, syntax from pyflyby._docxref import find_bad_doc_cross_references diff --git a/bin/prune-broken-imports b/bin/prune-broken-imports index dff27a88..850299d0 100755 --- a/bin/prune-broken-imports +++ b/bin/prune-broken-imports @@ -17,7 +17,6 @@ Only top-level import statements are touched. # Copyright (C) 2012, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement from pyflyby._cmdline import parse_args, process_actions from pyflyby._imports2s import remove_broken_imports diff --git a/bin/py b/bin/py index 772f9ffe..43567e8f 100755 --- a/bin/py +++ b/bin/py @@ -12,7 +12,6 @@ This file is only used when pyflyby is not installed by setup.py. When installed by setup.py, we use the pkg_resources entry_point mechanism. """ -from __future__ import absolute_import, division, with_statement # TODO: generate this script and others from a template. diff --git a/bin/reformat-imports b/bin/reformat-imports index b010158a..8e0bf1e0 100755 --- a/bin/reformat-imports +++ b/bin/reformat-imports @@ -10,7 +10,6 @@ Reformats the top-level 'import' blocks within the python module/script. # Copyright (C) 2011, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement from pyflyby._cmdline import parse_args, process_actions from pyflyby._imports2s import reformat_import_statements diff --git a/bin/replace-star-imports b/bin/replace-star-imports index 35ffcc58..733f06a3 100755 --- a/bin/replace-star-imports +++ b/bin/replace-star-imports @@ -20,7 +20,6 @@ Only top-level import statements are touched. # Copyright (C) 2012, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement from pyflyby._cmdline import parse_args, process_actions from pyflyby._imports2s import replace_star_imports diff --git a/bin/tidy-imports b/bin/tidy-imports index a00a9ca9..31a9c25f 100755 --- a/bin/tidy-imports +++ b/bin/tidy-imports @@ -20,7 +20,6 @@ Only top-level import statements are touched. # Copyright (C) 2011, 2012, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import print_function, absolute_import, division, with_statement from distutils.spawn import find_executable import subprocess diff --git a/bin/transform-imports b/bin/transform-imports index bf5449ef..e5cb3567 100755 --- a/bin/transform-imports +++ b/bin/transform-imports @@ -19,7 +19,6 @@ stdin is not a tty, read from stdin and write to stdout. # Copyright (C) 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import absolute_import, division, with_statement from pyflyby._cmdline import hfmt, parse_args, process_actions from pyflyby._imports2s import transform_imports diff --git a/conftest.py b/conftest.py index a5303d00..88fd5958 100644 --- a/conftest.py +++ b/conftest.py @@ -1,6 +1,5 @@ -from __future__ import absolute_import, division, with_statement import os import re diff --git a/lib/python/pyflyby/__init__.py b/lib/python/pyflyby/__init__.py index d8b120d3..7b7ab712 100644 --- a/lib/python/pyflyby/__init__.py +++ b/lib/python/pyflyby/__init__.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._autoimp import (auto_eval, auto_import, find_missing_imports) diff --git a/lib/python/pyflyby/__main__.py b/lib/python/pyflyby/__main__.py index 7768fd8b..c185b90e 100644 --- a/lib/python/pyflyby/__main__.py +++ b/lib/python/pyflyby/__main__.py @@ -2,8 +2,7 @@ # Copyright (C) 2014, 2015 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + if __name__ == "__main__": from pyflyby._py import py_main diff --git a/lib/python/pyflyby/_autoimp.py b/lib/python/pyflyby/_autoimp.py index 9c765d97..4a08dee0 100644 --- a/lib/python/pyflyby/_autoimp.py +++ b/lib/python/pyflyby/_autoimp.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018, 2019 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast import contextlib diff --git a/lib/python/pyflyby/_cmdline.py b/lib/python/pyflyby/_cmdline.py index fca83d38..b0658260 100644 --- a/lib/python/pyflyby/_cmdline.py +++ b/lib/python/pyflyby/_cmdline.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import optparse import os diff --git a/lib/python/pyflyby/_comms.py b/lib/python/pyflyby/_comms.py index c805433f..046967b0 100644 --- a/lib/python/pyflyby/_comms.py +++ b/lib/python/pyflyby/_comms.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import, division, print_function from pyflyby._log import logger from pyflyby._imports2s import SourceToSourceFileImportsTransformation diff --git a/lib/python/pyflyby/_dbg.py b/lib/python/pyflyby/_dbg.py index 43a336fa..036b3b53 100644 --- a/lib/python/pyflyby/_dbg.py +++ b/lib/python/pyflyby/_dbg.py @@ -2,8 +2,7 @@ # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from contextlib import contextmanager import errno diff --git a/lib/python/pyflyby/_docxref.py b/lib/python/pyflyby/_docxref.py index 4280d19a..c642cee5 100644 --- a/lib/python/pyflyby/_docxref.py +++ b/lib/python/pyflyby/_docxref.py @@ -24,8 +24,6 @@ # from, out of or in connection with the software or the use or other # dealings in the software. -from __future__ import (absolute_import, division, print_function, - with_statement) import re import six diff --git a/lib/python/pyflyby/_file.py b/lib/python/pyflyby/_file.py index 73ad177a..3b8368d6 100644 --- a/lib/python/pyflyby/_file.py +++ b/lib/python/pyflyby/_file.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from functools import total_ordering import io diff --git a/lib/python/pyflyby/_flags.py b/lib/python/pyflyby/_flags.py index e58fac84..d24e03d3 100644 --- a/lib/python/pyflyby/_flags.py +++ b/lib/python/pyflyby/_flags.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import __future__ import ast diff --git a/lib/python/pyflyby/_format.py b/lib/python/pyflyby/_format.py index c9f61420..7ca0101d 100644 --- a/lib/python/pyflyby/_format.py +++ b/lib/python/pyflyby/_format.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import six diff --git a/lib/python/pyflyby/_idents.py b/lib/python/pyflyby/_idents.py index 60c35031..6a043fab 100644 --- a/lib/python/pyflyby/_idents.py +++ b/lib/python/pyflyby/_idents.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from functools import total_ordering from keyword import kwlist diff --git a/lib/python/pyflyby/_importclns.py b/lib/python/pyflyby/_importclns.py index b8d0c168..395a86b8 100644 --- a/lib/python/pyflyby/_importclns.py +++ b/lib/python/pyflyby/_importclns.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from collections import defaultdict from functools import total_ordering diff --git a/lib/python/pyflyby/_importdb.py b/lib/python/pyflyby/_importdb.py index e8973fd2..0fc3b039 100644 --- a/lib/python/pyflyby/_importdb.py +++ b/lib/python/pyflyby/_importdb.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from collections import defaultdict import os diff --git a/lib/python/pyflyby/_imports2s.py b/lib/python/pyflyby/_imports2s.py index 4b0a1fdb..7a554f08 100644 --- a/lib/python/pyflyby/_imports2s.py +++ b/lib/python/pyflyby/_imports2s.py @@ -2,8 +2,7 @@ # Copyright (C) 2011-2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._autoimp import scan_for_import_issues from pyflyby._file import FileText, Filename diff --git a/lib/python/pyflyby/_importstmt.py b/lib/python/pyflyby/_importstmt.py index 808deed3..d78d4bc5 100644 --- a/lib/python/pyflyby/_importstmt.py +++ b/lib/python/pyflyby/_importstmt.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast from collections import namedtuple diff --git a/lib/python/pyflyby/_interactive.py b/lib/python/pyflyby/_interactive.py index 7550e58f..7fa425eb 100644 --- a/lib/python/pyflyby/_interactive.py +++ b/lib/python/pyflyby/_interactive.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast from contextlib import contextmanager diff --git a/lib/python/pyflyby/_livepatch.py b/lib/python/pyflyby/_livepatch.py index ccf188c9..15085f8e 100644 --- a/lib/python/pyflyby/_livepatch.py +++ b/lib/python/pyflyby/_livepatch.py @@ -129,8 +129,7 @@ def __livepatch__(self, old, do_livepatch): """ -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast import os diff --git a/lib/python/pyflyby/_log.py b/lib/python/pyflyby/_log.py index 8795223c..f15d8125 100644 --- a/lib/python/pyflyby/_log.py +++ b/lib/python/pyflyby/_log.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from contextlib import contextmanager import logging diff --git a/lib/python/pyflyby/_modules.py b/lib/python/pyflyby/_modules.py index d5e5e649..8b7cce3e 100644 --- a/lib/python/pyflyby/_modules.py +++ b/lib/python/pyflyby/_modules.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from functools import total_ordering import os diff --git a/lib/python/pyflyby/_parse.py b/lib/python/pyflyby/_parse.py index 38c38b05..15885120 100644 --- a/lib/python/pyflyby/_parse.py +++ b/lib/python/pyflyby/_parse.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast from collections import namedtuple diff --git a/lib/python/pyflyby/_py.py b/lib/python/pyflyby/_py.py index 1f5c7ea2..6f03ff76 100644 --- a/lib/python/pyflyby/_py.py +++ b/lib/python/pyflyby/_py.py @@ -272,8 +272,7 @@ """ -from __future__ import (absolute_import, division, print_function, - with_statement) + from functools import total_ordering diff --git a/lib/python/pyflyby/_util.py b/lib/python/pyflyby/_util.py index ec844e30..6bcccc55 100644 --- a/lib/python/pyflyby/_util.py +++ b/lib/python/pyflyby/_util.py @@ -2,8 +2,7 @@ # Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen. # License: MIT http://opensource.org/licenses/MIT -from __future__ import (absolute_import, division, print_function, - with_statement) + from contextlib import contextmanager import inspect diff --git a/lib/python/pyflyby/_version.py b/lib/python/pyflyby/_version.py index 6bb9e1c8..eb44401a 100644 --- a/lib/python/pyflyby/_version.py +++ b/lib/python/pyflyby/_version.py @@ -3,7 +3,6 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + __version__ = '1.8.4' diff --git a/lib/python/pyflyby/autoimport.py b/lib/python/pyflyby/autoimport.py index 138a1163..0325d609 100644 --- a/lib/python/pyflyby/autoimport.py +++ b/lib/python/pyflyby/autoimport.py @@ -11,8 +11,7 @@ # import pyflyby # pyflyby.enable_auto_importer() -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._interactive import enable_auto_importer diff --git a/lib/python/pyflyby/importdb.py b/lib/python/pyflyby/importdb.py index fa374767..e8414fa0 100644 --- a/lib/python/pyflyby/importdb.py +++ b/lib/python/pyflyby/importdb.py @@ -4,8 +4,7 @@ # Deprecated stub for backwards compatibility. -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._importdb import ImportDB diff --git a/libexec/pyflyby/diff-colorize b/libexec/pyflyby/diff-colorize index 73201b8f..60957847 100755 --- a/libexec/pyflyby/diff-colorize +++ b/libexec/pyflyby/diff-colorize @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import absolute_import, division, with_statement import fileinput import os diff --git a/setup.py b/setup.py index d523ec8b..01db9c90 100755 --- a/setup.py +++ b/setup.py @@ -5,8 +5,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import glob import os diff --git a/tests/__init__.py b/tests/__init__.py index d1153d41..8b137891 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,2 +1 @@ -from __future__ import absolute_import, division, print_function diff --git a/tests/test_0testconfig.py b/tests/test_0testconfig.py index 0f13dfff..cfe8710e 100644 --- a/tests/test_0testconfig.py +++ b/tests/test_0testconfig.py @@ -1,8 +1,7 @@ # Some self tests to check that our test setup is pointing to wrong paths etc. -from __future__ import (absolute_import, division, print_function, - with_statement) + import os import pytest diff --git a/tests/test_autoimp.py b/tests/test_autoimp.py index 501d8eca..0e9ed407 100644 --- a/tests/test_autoimp.py +++ b/tests/test_autoimp.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast import os diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 5a8d1286..983e739c 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from io import BytesIO import os diff --git a/tests/test_docxref.py b/tests/test_docxref.py index 8ae4e597..eeb84193 100644 --- a/tests/test_docxref.py +++ b/tests/test_docxref.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from . import xrefs diff --git a/tests/test_file.py b/tests/test_file.py index 78a1664d..784aea44 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import pytest diff --git a/tests/test_flags.py b/tests/test_flags.py index d19aa486..da01b26d 100644 --- a/tests/test_flags.py +++ b/tests/test_flags.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import ast diff --git a/tests/test_format.py b/tests/test_format.py index 479da0ce..bebef5d1 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from textwrap import dedent diff --git a/tests/test_idents.py b/tests/test_idents.py index 380c506d..bc74e657 100644 --- a/tests/test_idents.py +++ b/tests/test_idents.py @@ -4,8 +4,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._idents import (brace_identifiers, dotted_prefixes, diff --git a/tests/test_importclns.py b/tests/test_importclns.py index 7263ac44..7e98837d 100644 --- a/tests/test_importclns.py +++ b/tests/test_importclns.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._importclns import ImportMap, ImportSet from pyflyby._importstmt import Import, ImportStatement diff --git a/tests/test_importdb.py b/tests/test_importdb.py index a454f952..80bdb8a4 100644 --- a/tests/test_importdb.py +++ b/tests/test_importdb.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import os from shutil import rmtree diff --git a/tests/test_imports2s.py b/tests/test_imports2s.py index fc98e5e6..594f2e15 100644 --- a/tests/test_imports2s.py +++ b/tests/test_imports2s.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import pytest import sys diff --git a/tests/test_importstmt.py b/tests/test_importstmt.py index 93202dc4..44400101 100644 --- a/tests/test_importstmt.py +++ b/tests/test_importstmt.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._flags import CompilerFlags from pyflyby._importstmt import Import, ImportSplit, ImportStatement diff --git a/tests/test_interactive.py b/tests/test_interactive.py index c4b3485d..12e46bcd 100644 --- a/tests/test_interactive.py +++ b/tests/test_interactive.py @@ -4,8 +4,6 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) import IPython import atexit diff --git a/tests/test_livepatch.py b/tests/test_livepatch.py index bc35d922..0777c40b 100644 --- a/tests/test_livepatch.py +++ b/tests/test_livepatch.py @@ -1,6 +1,5 @@ -from __future__ import (absolute_import, division, print_function, - with_statement) + import os import pytest diff --git a/tests/test_modules.py b/tests/test_modules.py index f0104463..645981f5 100644 --- a/tests/test_modules.py +++ b/tests/test_modules.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import logging.handlers diff --git a/tests/test_parse.py b/tests/test_parse.py index 04f8d5aa..08c9efe4 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import pytest import sys diff --git a/tests/test_py.py b/tests/test_py.py index bf96c257..b11b8258 100644 --- a/tests/test_py.py +++ b/tests/test_py.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + import os import pytest diff --git a/tests/test_util.py b/tests/test_util.py index 37d87abb..c6f31c12 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -3,8 +3,7 @@ # License for THIS FILE ONLY: CC0 Public Domain Dedication # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + from pyflyby._util import (longest_common_prefix, partition, prefixes, stable_unique) diff --git a/tests/xrefs.py b/tests/xrefs.py index 6b29952f..48c6be37 100644 --- a/tests/xrefs.py +++ b/tests/xrefs.py @@ -10,8 +10,7 @@ # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import (absolute_import, division, print_function, - with_statement) + class FooClass(object): """