summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-25 13:50:16 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-25 14:08:54 (GMT)
commite6b934a59c01d3ddcc20532a2846ac8d2d9cd154 (patch)
tree296897ffbbb9210c691d92ead3f33a485a97ab9c
parent2cea738b1407fdebf089139574bb434fd614c443 (diff)
downloadlibnl-e6b934a59c01d3ddcc20532a2846ac8d2d9cd154.zip
libnl-e6b934a59c01d3ddcc20532a2846ac8d2d9cd154.tar.gz
libnl-e6b934a59c01d3ddcc20532a2846ac8d2d9cd154.tar.bz2
python: fix flake8 warnings E712
./python/netlink/route/links/bridge.py:29:31: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
-rw-r--r--python/netlink/route/links/bridge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/netlink/route/links/bridge.py b/python/netlink/route/links/bridge.py
index 7710584..d3e72e5 100644
--- a/python/netlink/route/links/bridge.py
+++ b/python/netlink/route/links/bridge.py
@@ -26,7 +26,7 @@ class BRIDGELink(object):
]
def bridge_assert_ext_info(self):
- if self._has_ext_info == False:
+ if not self._has_ext_info:
print(
"""
Please update your kernel to be able to call this method.