1
0
forked from GitHub/gf-core
This commit is contained in:
krangelov
2019-09-19 22:30:08 +02:00
parent 4a71464ca7
commit acb70ccc1b
50 changed files with 537 additions and 1964 deletions

View File

@@ -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*