summaryrefslogtreecommitdiffstats
path: root/Modules/_gdbmmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-01 06:51:01 (GMT)
committerGitHub <noreply@github.com>2021-09-01 06:51:01 (GMT)
commite09dd8aafd6f9aef03945c417267806d47084a5d (patch)
tree3dcd99d66fadc1320794057aa43ff21da7fdf36e /Modules/_gdbmmodule.c
parente527f79fa8b472dd534fc360e998fe8213e6471e (diff)
downloadcpython-e09dd8aafd6f9aef03945c417267806d47084a5d.zip
cpython-e09dd8aafd6f9aef03945c417267806d47084a5d.tar.gz
cpython-e09dd8aafd6f9aef03945c417267806d47084a5d.tar.bz2
[3.9] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28093)
(cherry picked from commit 3c65457156d87e55010507d616b4eecb7a02883d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Modules/_gdbmmodule.c')
-rw-r--r--Modules/_gdbmmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_gdbmmodule.c b/Modules/_gdbmmodule.c
index dd4c6b1..16b0f79 100644
--- a/Modules/_gdbmmodule.c
+++ b/Modules/_gdbmmodule.c
@@ -433,7 +433,7 @@ The following code prints every key in the database db, without having
to create a list in memory that contains them all:
k = db.firstkey()
- while k != None:
+ while k is not None:
print(k)
k = db.nextkey(k)
[clinic start generated code]*/
@@ -441,7 +441,7 @@ to create a list in memory that contains them all:
static PyObject *
_gdbm_gdbm_nextkey_impl(dbmobject *self, const char *key,
Py_ssize_clean_t key_length)
-/*[clinic end generated code: output=192ab892de6eb2f6 input=1f1606943614e36f]*/
+/*[clinic end generated code: output=192ab892de6eb2f6 input=b7b0949c520d730c]*/
{
PyObject *v;
datum dbm_key, nextkey;