oslo.rootwrap/oslo_rootwrap
Takashi Kajinami 863f06f1a6 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_rootwrap

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

Change-Id: I5964917e735e11f9979ee95e92243bf012edcdbf
2024-10-21 19:56:49 +09:00
..
tests Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00
__init__.py Fix Python 3 support for eventlet monkey-patching 2015-10-13 21:51:47 +02:00
client.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00
cmd.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00
daemon.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00
filters.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00
jsonrpc.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:21 -05:00
wrapper.py Run pyupgrade to clean up Python 2 syntaxes 2024-10-21 19:56:49 +09:00