Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5df1108

Browse files
committed
Add signatures to the docstring of functions added to imp by PEP 3147
1 parent 3bb1a6f commit 5df1108

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Python/import.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3534,7 +3534,8 @@ imp_cache_from_source(PyObject *self, PyObject *args, PyObject *kws)
35343534
}
35353535

35363536
PyDoc_STRVAR(doc_cache_from_source,
3537-
"Given the path to a .py file, return the path to its .pyc/.pyo file.\n\
3537+
"cache_from_source(path, [debug_override]) -> path\n\
3538+
Given the path to a .py file, return the path to its .pyc/.pyo file.\n\
35383539
\n\
35393540
The .py file does not need to exist; this simply returns the path to the\n\
35403541
.pyc/.pyo file calculated as if the .py file were imported. The extension\n\
@@ -3569,7 +3570,8 @@ imp_source_from_cache(PyObject *self, PyObject *args, PyObject *kws)
35693570
}
35703571

35713572
PyDoc_STRVAR(doc_source_from_cache,
3572-
"Given the path to a .pyc./.pyo file, return the path to its .py file.\n\
3573+
"source_from_cache(path) -> path\n\
3574+
Given the path to a .pyc./.pyo file, return the path to its .py file.\n\
35733575
\n\
35743576
The .pyc/.pyo file does not need to exist; this simply returns the path to\n\
35753577
the .py file calculated to correspond to the .pyc/.pyo file. If path\n\

0 commit comments

Comments
 (0)