aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2021-06-29 17:43:09 -0400
committerJohn Snow <jsnow@redhat.com>2021-06-30 21:54:04 -0400
commit00376d1345475fb3613a0d58584f161cd870ea90 (patch)
treeb3fc539a1a835f15c0102faebf9b82741e789720 /python
parentd940d468e29bff5eb5669c0dd8f3de0c3de17bfb (diff)
downloadqemu-00376d1345475fb3613a0d58584f161cd870ea90.zip
qemu-00376d1345475fb3613a0d58584f161cd870ea90.tar.gz
qemu-00376d1345475fb3613a0d58584f161cd870ea90.tar.bz2
python/qom: Do not use 'err' name at module scope
Pylint updated to 2.9.0 upstream, adding new warnings for things that re-use the 'err' variable. Luckily, this only breaks the python-check-tox job, which is allowed to fail as a warning. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Message-id: 20210629214323.1329806-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python')
-rw-r--r--python/qemu/qmp/qom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/qemu/qmp/qom.py b/python/qemu/qmp/qom.py
index 7ec7843..8ff28a8 100644
--- a/python/qemu/qmp/qom.py
+++ b/python/qemu/qmp/qom.py
@@ -38,8 +38,8 @@ from .qom_common import QOMCommand
try:
from .qom_fuse import QOMFuse
-except ModuleNotFoundError as err:
- if err.name != 'fuse':
+except ModuleNotFoundError as _err:
+ if _err.name != 'fuse':
raise
else:
assert issubclass(QOMFuse, QOMCommand)