summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 23:16:10 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 23:16:10 +0900
commitb56f4f902233b38db89c6081ec92bacd37e4ad09 (patch)
treea86de3ded634132f71dae515bd51e89918029a47
parent415ebc15c59e8b2e7fd2eb1df76017a331f8b131 (diff)
downloadsphinx-git-b56f4f902233b38db89c6081ec92bacd37e4ad09.tar.gz
Remove print_function feature
-rw-r--r--sphinx/application.py1
-rw-r--r--sphinx/builders/applehelp.py1
-rw-r--r--sphinx/builders/htmlhelp.py1
-rw-r--r--sphinx/cmd/build.py1
-rw-r--r--sphinx/cmd/make_mode.py1
-rw-r--r--sphinx/cmd/quickstart.py1
-rw-r--r--sphinx/cmdline.py1
-rw-r--r--sphinx/events.py1
-rw-r--r--sphinx/ext/apidoc.py2
-rw-r--r--sphinx/ext/autosummary/generate.py1
-rw-r--r--sphinx/ext/intersphinx.py2
-rw-r--r--sphinx/pycode/__init__.py1
-rw-r--r--sphinx/registry.py1
-rw-r--r--sphinx/setup_command.py1
-rw-r--r--sphinx/testing/fixtures.py1
-rw-r--r--sphinx/util/osutil.py1
-rw-r--r--tests/test_build_gettext.py1
-rw-r--r--tests/test_build_latex.py1
-rw-r--r--tests/test_build_linkcheck.py1
-rw-r--r--tests/test_build_manpage.py1
-rw-r--r--tests/test_build_texinfo.py1
-rw-r--r--tests/test_ext_apidoc.py2
-rw-r--r--tests/test_intl.py1
-rw-r--r--tests/test_util_i18n.py1
-rw-r--r--tests/test_util_images.py1
-rw-r--r--tests/test_util_logging.py1
-rw-r--r--tests/test_writer_latex.py1
27 files changed, 0 insertions, 30 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 984b2b6af..387536775 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -10,7 +10,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import pickle
diff --git a/sphinx/builders/applehelp.py b/sphinx/builders/applehelp.py
index 74f8fcfc6..14f1dbd2b 100644
--- a/sphinx/builders/applehelp.py
+++ b/sphinx/builders/applehelp.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import pipes
import plistlib
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py
index 55bff842b..72c34b8ba 100644
--- a/sphinx/builders/htmlhelp.py
+++ b/sphinx/builders/htmlhelp.py
@@ -9,7 +9,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
from os import path
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py
index 8b815ef28..be19cd10f 100644
--- a/sphinx/cmd/build.py
+++ b/sphinx/cmd/build.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import argparse
import locale
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py
index 27c4165ab..dfb45f55d 100644
--- a/sphinx/cmd/make_mode.py
+++ b/sphinx/cmd/make_mode.py
@@ -14,7 +14,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import subprocess
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index ace0ecdfc..f313942b9 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -9,7 +9,6 @@
:license: BSD, see LICENSE for details.
"""
from __future__ import absolute_import
-from __future__ import print_function
import argparse
import locale
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py
index 252f95bbc..f150006e2 100644
--- a/sphinx/cmdline.py
+++ b/sphinx/cmdline.py
@@ -9,7 +9,6 @@
:license: BSD, see LICENSE for details.
"""
from __future__ import absolute_import
-from __future__ import print_function
import sys
import warnings
diff --git a/sphinx/events.py b/sphinx/events.py
index fca304773..4fc52b552 100644
--- a/sphinx/events.py
+++ b/sphinx/events.py
@@ -10,7 +10,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
from collections import OrderedDict, defaultdict
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index 85a41e650..84a08b5d5 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -15,8 +15,6 @@
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
-
import argparse
import glob
import locale
diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py
index 04ba43d94..6f19387e1 100644
--- a/sphinx/ext/autosummary/generate.py
+++ b/sphinx/ext/autosummary/generate.py
@@ -17,7 +17,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import argparse
import locale
diff --git a/sphinx/ext/intersphinx.py b/sphinx/ext/intersphinx.py
index 2c7d7bf51..3da488706 100644
--- a/sphinx/ext/intersphinx.py
+++ b/sphinx/ext/intersphinx.py
@@ -24,8 +24,6 @@
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
-
import functools
import posixpath
import sys
diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py
index a1b2d0273..8df43e665 100644
--- a/sphinx/pycode/__init__.py
+++ b/sphinx/pycode/__init__.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import re
from io import BytesIO, StringIO
diff --git a/sphinx/registry.py b/sphinx/registry.py
index 4ba90d5f7..f155048c4 100644
--- a/sphinx/registry.py
+++ b/sphinx/registry.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import traceback
import warnings
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py
index b8efc13e6..f46553403 100644
--- a/sphinx/setup_command.py
+++ b/sphinx/setup_command.py
@@ -11,7 +11,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import sys
diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py
index e338fe937..399747826 100644
--- a/sphinx/testing/fixtures.py
+++ b/sphinx/testing/fixtures.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import subprocess
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index 7044cead3..998e423b8 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import contextlib
import errno
diff --git a/tests/test_build_gettext.py b/tests/test_build_gettext.py
index ec09eaf21..345c3047d 100644
--- a/tests/test_build_gettext.py
+++ b/tests/test_build_gettext.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import gettext
import os
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
index c1506e4db..c8edf02ce 100644
--- a/tests/test_build_latex.py
+++ b/tests/test_build_latex.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import re
diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py
index 1716a0c42..12ded8ecc 100644
--- a/tests/test_build_linkcheck.py
+++ b/tests/test_build_linkcheck.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import pytest
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
index 8a3777a30..1c8ebec70 100644
--- a/tests/test_build_manpage.py
+++ b/tests/test_build_manpage.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import pytest
diff --git a/tests/test_build_texinfo.py b/tests/test_build_texinfo.py
index 63b9a69ba..90a744d4c 100644
--- a/tests/test_build_texinfo.py
+++ b/tests/test_build_texinfo.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import re
diff --git a/tests/test_ext_apidoc.py b/tests/test_ext_apidoc.py
index 3d1517929..dd39c8fd3 100644
--- a/tests/test_ext_apidoc.py
+++ b/tests/test_ext_apidoc.py
@@ -9,8 +9,6 @@
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
-
from collections import namedtuple
import pytest
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 942248cfc..2d82ac1ff 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -9,7 +9,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import os
import pickle
diff --git a/tests/test_util_i18n.py b/tests/test_util_i18n.py
index 63496bccb..bcc6a2cd9 100644
--- a/tests/test_util_i18n.py
+++ b/tests/test_util_i18n.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import datetime
import os
diff --git a/tests/test_util_images.py b/tests/test_util_images.py
index cc5562404..a7ecff371 100644
--- a/tests/test_util_images.py
+++ b/tests/test_util_images.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import pytest
diff --git a/tests/test_util_logging.py b/tests/test_util_logging.py
index fa7921cd1..09d25b779 100644
--- a/tests/test_util_logging.py
+++ b/tests/test_util_logging.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import codecs
import os
diff --git a/tests/test_writer_latex.py b/tests/test_writer_latex.py
index b0a84e944..e8e8cb191 100644
--- a/tests/test_writer_latex.py
+++ b/tests/test_writer_latex.py
@@ -8,7 +8,6 @@
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
import pytest