]> git.neil.brown.name Git - edlib.git/commitdiff
python: use consistent capitalisation for type names.
authorNeilBrown <neil@brown.name>
Fri, 25 Dec 2015 22:38:41 +0000 (09:38 +1100)
committerNeilBrown <neil@brown.name>
Fri, 25 Dec 2015 22:41:20 +0000 (09:41 +1100)
I've been inconsistent with type names.
Spell all edlib types (Pane Mark Comm) with leading capital letter.

Signed-off-by: NeilBrown <neil@brown.name>
lang-python.c

index d167bfc4d58c977afb06653af122a09ecce7561f..c9f67fdf9ae66e0a6fffcd1126eb297db08d7b53 100644 (file)
@@ -998,9 +998,9 @@ void edlib_init(struct editor *ed)
 
        Py_INCREF(&PaneType);
        Py_INCREF(&MarkType);
-       PyModule_AddObject(m, "pane", (PyObject *)&PaneType);
-       PyModule_AddObject(m, "mark", (PyObject *)&MarkType);
-       PyModule_AddObject(m, "comm", (PyObject *)&CommType);
+       PyModule_AddObject(m, "Pane", (PyObject *)&PaneType);
+       PyModule_AddObject(m, "Mark", (PyObject *)&MarkType);
+       PyModule_AddObject(m, "Comm", (PyObject *)&CommType);
        key_add(ed->commands, "python-load", &python_load);
 
        Edlib_CommandFailed = PyErr_NewException("edlib.commandfailed", NULL, NULL);