Erik Olof Gunnar Andersson
68fc28527a
pyupgrade changes for Python3.8+
...
Result of running
$ pyupgrade --py38-plus $(git ls-files | grep ".py$")
This was inspired by Nova [1] and Octavia [2]
Fixed PEP8 errors introduced by pyupgrade by running:
$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
--in-place designate
and manual updates.
[1]: https://review.opendev.org/c/openstack/nova/+/896986
[2]: https://review.opendev.org/c/openstack/octavia/+/899263
Change-Id: Idfa757d7ba238012db116fdb3e98cc7c5ff4b169
2023-11-03 11:19:07 +00:00
wu.shiming
a84821aebe
Remove references to sys.version_info
...
We support Python 3.6 as a minimum now, making these checks no-ops.
Change-Id: I824a12f382dde71c145af0c73435aa50dfc20883
2021-09-18 11:05:49 +08:00
Hervé Beraud
5492731a83
Stop to use the __future__ module.
...
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.
We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.
Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]
[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328
Change-Id: I0c61adcc18a6c46e94df681f5adbd2cf1fad8963
2020-06-05 13:40:51 +02:00
Kiall Mac Innes
a7764eb067
Update from oslo-incubator
...
Change-Id: I16b9f94b74de927bb831f0f38483fb3909bbb3f7
2014-07-24 12:34:48 -07:00
Kiall Mac Innes
e9975b12d0
Update install_venv from Oslo
...
Change-Id: I1879787b3ae42ffa6b26f43595429e6cb1bad06f
2014-04-11 14:12:31 +01:00
Kiall Mac Innes
28becedeee
Switch to PBR
...
Change-Id: Ib62c6ab685c1bcf14ed363031010c4a145098df6
2013-05-31 21:41:45 +01:00
Endre Karlson
0c7535e4b9
Helper utilities
...
Change-Id: Ia689302fc1bcc3b11dceb51f131cdd4ac1ad30ba
2013-05-23 22:22:12 +02:00