From: John Snow Date: Tue, 29 Jun 2021 21:43:09 +0000 (-0400) Subject: python/qom: Do not use 'err' name at module scope X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=00376d1345475fb3613a0d58584f161cd870ea90;p=qemu.git 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 Reviewed-by: Wainer dos Santos Moschetta Reviewed-by: Willian Rampazzo Message-id: 20210629214323.1329806-2-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/python/qemu/qmp/qom.py b/python/qemu/qmp/qom.py index 7ec7843d57..8ff28a8343 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)