Skip to content

Commit 8b063b9

Browse files
authored
Remove future imports now that we've dropped support for Python 2 (google#539)
* Remove future imports now that we've dropped support for Python 2 * Keep future imports for use in MemberVisible * Drop support for Python 3.5 * Remove indications of support for Python <3.7 and bump version number.
1 parent a59f6ba commit 8b063b9

37 files changed

Lines changed: 3 additions & 143 deletions

.github/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Exit when any command fails.
1818
set -e
1919

20-
PYTHON_VERSION=${PYTHON_VERSION:-2.7}
20+
PYTHON_VERSION=${PYTHON_VERSION:-3.7}
2121

2222
pip install -U -r .github/scripts/requirements.txt
2323
python setup.py develop

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-20.04
88
strategy:
99
matrix:
10-
python-version: ["3.5", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
10+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1111

1212
steps:
1313
# Checkout the repo.

fire/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
"""The Python Fire module."""
1616

17-
from __future__ import absolute_import
18-
from __future__ import division
19-
from __future__ import print_function
20-
2117
from fire.core import Fire
2218

2319
__all__ = ['Fire']

fire/__main__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
This allows using Fire with third-party libraries without modifying their code.
1919
"""
2020

21-
from __future__ import absolute_import
22-
from __future__ import division
23-
from __future__ import print_function
24-
2521
import importlib
2622
import os
2723
import sys

fire/completion_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
"""Tests for the completion module."""
1616

17-
from __future__ import absolute_import
18-
from __future__ import division
19-
from __future__ import print_function
20-
2117
from fire import completion
2218
from fire import test_components as tc
2319
from fire import testutils

fire/console/console_io.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
"""General console printing utilities used by the Cloud SDK."""
1717

18-
from __future__ import absolute_import
19-
from __future__ import division
20-
from __future__ import print_function
21-
2218
import os
2319
import signal
2420
import subprocess

fire/core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ def main(argv):
4949
--trace: Get the Fire Trace for the command.
5050
"""
5151

52-
from __future__ import absolute_import
53-
from __future__ import division
54-
from __future__ import print_function
55-
5652
import inspect
5753
import json
5854
import os

fire/core_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
"""Tests for the core module."""
1616

17-
from __future__ import absolute_import
18-
from __future__ import division
19-
from __future__ import print_function
20-
2117
from fire import core
2218
from fire import test_components as tc
2319
from fire import testutils

fire/custom_descriptions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
descriptions for primitive typed values.
3737
"""
3838

39-
from __future__ import absolute_import
40-
from __future__ import division
41-
from __future__ import print_function
42-
4339
from fire import formatting
4440
import six
4541

fire/custom_descriptions_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
"""Tests for custom description module."""
1616

17-
from __future__ import absolute_import
18-
from __future__ import division
19-
from __future__ import print_function
20-
2117
from fire import custom_descriptions
2218
from fire import testutils
2319

0 commit comments

Comments
 (0)