We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0f3d64 commit 390020eCopy full SHA for 390020e
1 file changed
src/pkgcraft/atom/base.pyx
@@ -180,10 +180,7 @@ cdef class Cpv:
180
181
def __reduce__(self):
182
"""Support pickling Cpv objects."""
183
- c_str = C.pkgcraft_atom_str(self.ptr)
184
- s = c_str.decode()
185
- C.pkgcraft_str_free(c_str)
186
- return (self.__class__, (s,))
+ return (self.__class__, (str(self),))
187
188
# TODO: move to __del__() when migrating to >=cython-3 since it's not
189
# supported in <cython-3 for cdef classes:
0 commit comments