diff options
author | Stephen Finucane <stephen@that.guru> | 2018-10-05 18:02:56 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-12-17 09:46:15 +0000 |
commit | d345d0f8c17009195f69b581cc1b6dc2da431b0e (patch) | |
tree | c8978195708fa157fdb6dd6cfc0dd7f631d99d13 /sphinx/builders/devhelp.py | |
parent | a3d3fecf847a08fa59d398783b046515121e03b1 (diff) | |
download | sphinx-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 'sphinx/builders/devhelp.py')
-rw-r--r-- | sphinx/builders/devhelp.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sphinx/builders/devhelp.py b/sphinx/builders/devhelp.py index 13abf6b3b..1755b54eb 100644 --- a/sphinx/builders/devhelp.py +++ b/sphinx/builders/devhelp.py @@ -10,7 +10,6 @@ :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ -from __future__ import absolute_import import gzip import re |