mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 13:29:32 -06:00
cleanup
This commit is contained in:
@@ -2285,7 +2285,10 @@ Concr_getName(ConcrObject *self, void *closure)
|
||||
static PyObject*
|
||||
Concr_getLanguageCode(ConcrObject *self, void *closure)
|
||||
{
|
||||
return PyString_FromString(pgf_language_code(self->concr));
|
||||
GuString code = pgf_language_code(self->concr);
|
||||
if (code == NULL)
|
||||
Py_RETURN_NONE;
|
||||
return PyString_FromString(code);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
|
||||
Reference in New Issue
Block a user