oslo.config/oslo_config
Takashi Kajinami c12e49fabb Run pyupgrade to clean up Python 2 syntaxes
Update all .py source files by
 $ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.

pep8 errors are fixed by
 $ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
    --in-place oslo_config

Also add the pyupgrade hook to pre-commit to avoid merging additional
Python 2 syntaxes.

Change-Id: I0c88bddde6979e3626a18be1e31905cc5f8c4e86
2024-10-21 19:42:59 +09:00
..
sources Add option for generate shell completion script 2024-04-12 15:12:15 +02:00
tests Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
__init__.py Move files out of the namespace package 2014-12-12 16:13:29 -05:00
_i18n.py Switch to hacking 2.x 2020-02-12 09:56:58 +00:00
_list_opts.py ensure we do not modify private data from drivers 2018-07-17 12:35:13 -04:00
cfg.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
fixture.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
generator.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
iniparser.py inherit from object is not required for py3 2021-01-12 17:09:25 +00:00
sphinxconfiggen.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
sphinxext.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
types.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
validator.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:42:59 +09:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:23 -05:00