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:07:52 (GMT) |
commit | 2cea738b1407fdebf089139574bb434fd614c443 (patch) | |
tree | ce52af032eaf4b3d475787932c430ad6d04b691a | |
parent | d561096c1d30fb60d3eab82303828b3f062bd938 (diff) | |
download | libnl-2cea738b1407fdebf089139574bb434fd614c443.zip libnl-2cea738b1407fdebf089139574bb434fd614c443.tar.gz libnl-2cea738b1407fdebf089139574bb434fd614c443.tar.bz2 |
python: fix flake8 warnings E711
./python/netlink/core.py:194:17: E711 comparison to None should be 'if cond is None:'
-rw-r--r-- | python/netlink/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/netlink/core.py b/python/netlink/core.py index 2c5c919..b994a73 100644 --- a/python/netlink/core.py +++ b/python/netlink/core.py @@ -191,7 +191,7 @@ class Socket(object): def __init__(self, cb=None): if isinstance(cb, Callback): self._sock = capi.nl_socket_alloc_cb(cb._cb) - elif cb == None: + elif cb is None: self._sock = capi.nl_socket_alloc() else: raise Exception("'cb' parameter has wrong type") |