diff options
author | Stephen Finucane <stephen@that.guru> | 2018-10-05 20:02:56 +0300 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-12-17 12:46:15 +0300 |
commit | d345d0f8c17009195f69b581cc1b6dc2da431b0e (patch) | |
tree | c8978195708fa157fdb6dd6cfc0dd7f631d99d13 /utils | |
parent | a3d3fecf847a08fa59d398783b046515121e03b1 (diff) |
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 'utils')
-rwxr-xr-x | utils/bump_version.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/bump_version.py b/utils/bump_version.py index 55da12551..79a1fe6a7 100755 --- a/utils/bump_version.py +++ b/utils/bump_version.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function - import argparse import os import re |