summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2020-04-21 14:43:14 +0200
committerDavid Disseldorp <ddiss@samba.org>2020-04-27 12:19:58 +0000
commit1f97aeac6b866ff4ecdb704ecf15130eb2f87a9a (patch)
treeb10eecf8289dc76ce014d9b2ee1749da312bc24c /.gitlab-ci.yml
parente7dfe87ac64f5867e587e9f252cf0d6f41f01c63 (diff)
downloadsamba-1f97aeac6b866ff4ecdb704ecf15130eb2f87a9a.tar.gz
traffic_packets: fix SyntaxWarning: "is" with a literal
Python 3.8 adds this warning via https://bugs.python.org/issue34850: the "is" and "is not" operator sometimes is used with string and numerical literals. This code "works" on CPython by accident, because of caching on different levels (small integers and strings caches, interned strings, deduplicating constants at compile time). But it shouldn't work on other implementations, and can not work even on early or future CPython versions. Reported-by: L. van Belle <belle@samba.org> Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Noel Power <noel.power@suse.com> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Mon Apr 27 12:19:59 UTC 2020 on sn-devel-184
Diffstat (limited to '.gitlab-ci.yml')
0 files changed, 0 insertions, 0 deletions