Commit Graph

6 Commits

Author SHA1 Message Date
Stephen Finucane 69e21be288 Remove six
Change-Id: I1d6e583f41f95be7c2af232a2f22ee20fa83c4be
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-01-24 15:49:09 +01:00
Hervé Beraud fac394f79c 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: I15d451f6a832b2e698b28e7351a36ef7aea92abe
2020-06-02 20:56:04 +02:00
Matthew Thode 698b571749
mark regex as regex for pycodestyle
Change-Id: Id66a3e4d574fa4da5fbffe6a1aa24c5ea23ab8cc
2019-12-13 23:17:32 -06:00
Piotr Bielak de2adc5377 Fixed "pip-install" test
The "pip-install" tox environment was failing, because the name
of the "ConfigParser" package was changed into "configparser".
This commit fixes that by using the six.moves module to do the right
thing on py2 and py3

Change-Id: I6b16c8f0e182850cda041ca294edc5ad04c1a3c3
2018-08-01 12:56:57 +10:00
Cady_Chen 6898f5d20d Fix "wrap functions with 2 blank lines" pep8 check
Now gates are requires this pep8 rule as mandatory so until it'll be
fixed merge is blocked.

Change-Id: I5b1ad7ec820911b5e765e184223f786c733836a5
2016-11-16 18:52:03 +08:00
Tony Breeds 9a428f3ddb Check for missing run-time requirements
This change creates a new tox environment that *only* installs
openstack_requirements and then verifies that each of the console
scripts has all of the modules that it imports.

This will need to be added to our gate RSN

Change-Id: Ibc37593afcc4d9f820cb88168e1aa15e773b2087
2016-07-26 19:46:49 -05:00