From ff42b4fc2a20f4e69cfcca114e82c0f648ccdb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=BCndler?= Date: Mon, 28 Nov 2022 18:36:40 +0100 Subject: [PATCH] Formatting --- scripts/ref_leak_test.py | 2 -- source/tags.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/ref_leak_test.py b/scripts/ref_leak_test.py index f2a9dc15..cfd2f674 100755 --- a/scripts/ref_leak_test.py +++ b/scripts/ref_leak_test.py @@ -21,8 +21,6 @@ import objgraph -import cbor2 - def import_cbor2(): # Similar hack to that used in tests/conftest to get separate C and Python diff --git a/source/tags.c b/source/tags.c index 41e35609..18b31aef 100644 --- a/source/tags.c +++ b/source/tags.c @@ -109,7 +109,8 @@ CBORTag_richcompare(PyObject *aobj, PyObject *bobj, int op) } else { a = (CBORTagObject *)aobj; b = (CBORTagObject *)bobj; -if (a == b) { + + if (a == b) { // Special case: both are the same object switch (op) { case Py_EQ: case Py_LE: case Py_GE: ret = Py_True; break;