Skip to content

Commit c660631

Browse files
committed
Minor changes
1 parent 9305be2 commit c660631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/_jsonnet.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static int cpython_import_callback(void *ctx_, const char *base, const char *rel
251251
#else
252252
if (!PyString_Check(file_name) || !PyBytes_Check(file_content)) {
253253
#endif
254-
*buf = jsonnet_str_nonull(ctx->vm, "import_callback did not return (string, bytes) Since 0.19.0 imports should be returned as bytes instead of as a string. You may want to call .encode() on your string.", buflen);
254+
*buf = jsonnet_str_nonull(ctx->vm, "import_callback did not return (string, bytes). Since 0.19.0 imports should be returned as bytes instead of as a string. You may want to call .encode() on your string.", buflen);
255255
success = 0;
256256
} else {
257257
char *content_buf;
@@ -654,7 +654,7 @@ static PyMethodDef module_methods[] = {
654654
};
655655

656656
#if PY_MAJOR_VERSION >= 3
657-
static struct PyModuleDef _jsonnet =
657+
static struct PyModuleDef _module =
658658
{
659659
PyModuleDef_HEAD_INIT,
660660
"_jsonnet",
@@ -665,7 +665,7 @@ static struct PyModuleDef _jsonnet =
665665

666666
PyMODINIT_FUNC PyInit__jsonnet(void)
667667
{
668-
PyObject *module = PyModule_Create(&_jsonnet);
668+
PyObject *module = PyModule_Create(&_module);
669669
PyObject *version_str = PyUnicode_FromString(LIB_JSONNET_VERSION);
670670
PyModule_AddObjectRef(module, "version", version_str);
671671
return module;

0 commit comments

Comments
 (0)