Skip to content

Commit

Permalink
update reference couter of Py_None used during repr of Signature object
Browse files Browse the repository at this point in the history
  • Loading branch information
siscia committed Oct 4, 2022
1 parent 0ec4c82 commit 2f148c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,4 @@ Authors::
chengyuhang
earl
odidev
siscia
1 change: 1 addition & 0 deletions src/signature.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ Signature__repr__(Signature *self)
encoding = to_unicode(self->encoding, self->encoding, NULL);
} else {
encoding = Py_None;
Py_INCREF(Py_None);
}

str = PyUnicode_FromFormat(
Expand Down

0 comments on commit 2f148c5

Please sign in to comment.