summaryrefslogtreecommitdiff
path: root/tests/roots/test-ext-autodoc/target/enum.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-10-05 18:02:56 +0100
committerStephen Finucane <stephen@that.guru>2018-12-17 09:46:15 +0000
commitd345d0f8c17009195f69b581cc1b6dc2da431b0e (patch)
treec8978195708fa157fdb6dd6cfc0dd7f631d99d13 /tests/roots/test-ext-autodoc/target/enum.py
parenta3d3fecf847a08fa59d398783b046515121e03b1 (diff)
downloadsphinx-git-d345d0f8c17009195f69b581cc1b6dc2da431b0e.tar.gz
py3: Remove (most) __future__ imports
There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/enum.py')
-rw-r--r--tests/roots/test-ext-autodoc/target/enum.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/roots/test-ext-autodoc/target/enum.py b/tests/roots/test-ext-autodoc/target/enum.py
index 31e7c6ccd..d0a59c71c 100644
--- a/tests/roots/test-ext-autodoc/target/enum.py
+++ b/tests/roots/test-ext-autodoc/target/enum.py
@@ -1,4 +1,3 @@
-from __future__ import absolute_import
import enum