diff options
author | Thomas Haller <thaller@redhat.com> | 2023-07-25 13:50:16 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-07-25 14:08:54 (GMT) |
commit | e6b934a59c01d3ddcc20532a2846ac8d2d9cd154 (patch) | |
tree | 296897ffbbb9210c691d92ead3f33a485a97ab9c | |
parent | 2cea738b1407fdebf089139574bb434fd614c443 (diff) | |
download | libnl-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.py | 2 |
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. |