MCPcopy Create free account
hub / github.com/libgit2/pygit2 / Signature__str__

Function Signature__str__

src/signature.c:228–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static PyObject *
229Signature__str__(Signature *self)
230{
231 PyObject *name, *email, *str;
232 name = to_unicode_safe(self->signature->name, self->encoding);
233 email = to_unicode_safe(self->signature->email, self->encoding);
234 assert(name);
235 assert(email);
236
237 str = PyUnicode_FromFormat("%U <%U>", name, email);
238 Py_DECREF(name);
239 Py_DECREF(email);
240 return str;
241}
242
243static PyObject *
244Signature__repr__(Signature *self)

Callers

nothing calls this directly

Calls 1

to_unicode_safeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…