summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/import.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:11:21 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:11:21 (GMT)
commit03863d2b290d0856d7647a0275a73b55b6589fa7 (patch)
treeb108c989aeb591eb444722e7f0046c75689182ab /Doc/c-api/import.rst
parent5fa22fc088ac44c5652107c7c17cda01eaa84a28 (diff)
downloadcpython-03863d2b290d0856d7647a0275a73b55b6589fa7.zip
cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.tar.gz
cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.tar.bz2
Fixed documentation of functions with const char* arguments.
Diffstat (limited to 'Doc/c-api/import.rst')
-rw-r--r--Doc/c-api/import.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index 3641fc6..60865f4 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -39,7 +39,7 @@ Importing Modules
behaviour isn't needed anymore.
-.. c:function:: PyObject* PyImport_ImportModuleEx(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
+.. c:function:: PyObject* PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
.. index:: builtin: __import__
@@ -70,7 +70,7 @@ Importing Modules
.. versionadded:: 3.3
-.. c:function:: PyObject* PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level)
+.. c:function:: PyObject* PyImport_ImportModuleLevel(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level)
Similar to :c:func:`PyImport_ImportModuleLevelObject`, but the name is an
UTF-8 encoded string instead of a Unicode object.