From 9bfd15edf5e84584f8a217e4650fc70542421cd3 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 25 Oct 2024 15:29:46 -0400 Subject: [PATCH] pyupgrade changes for Python3.9+ As discussed at the Epoxy PTG meeting, run an automated upgrade tool to make code python 3.9+ compliant. This patch is for pylint. Result of running: $ pyupgrade --py39-plus $(git ls-files | grep ".py$") Fixed PEP8 errors introduced by pyupgrade by running: $ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \ --in-place neutron Also did manual updates as necessary to fix other errors and warnings after above commands. Inspired by Octavia and Nova [0]. [0] https://review.opendev.org/c/openstack/nova/+/896986 Change-Id: Idc2bc19b018df6f74da0f4ed10c96abf6117720b --- .pylintrc | 3 --- 1 file changed, 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index 2206810ceb2..41abde4674a 100644 --- a/.pylintrc +++ b/.pylintrc @@ -37,7 +37,6 @@ disable= expression-not-assigned, fixme, global-statement, - non-parent-init-called, not-callable, protected-access, redefined-builtin, @@ -89,8 +88,6 @@ disable= too-many-return-statements, too-many-statements, consider-using-set-comprehension, - useless-object-inheritance, - super-with-arguments, use-dict-literal [BASIC]