pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/6b06da5395907e0e4df84b98d01f1e8b122591aa

48faa60c69660fa.css" /> Remove unused functions _PyImport_FindModule and _PyImport_IsScript · python/cpython@6b06da5 · GitHub
Skip to content

Commit 6b06da5

Browse files
author
Victor Stinner
committed
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
1 parent 0e5a41b commit 6b06da5

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

Include/import.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
3838
#define _PyImport_ReleaseLock() 1
3939
#endif
4040

41-
PyAPI_FUNC(struct filedescr *) _PyImport_FindModule(
42-
const char *, PyObject *, char *, size_t, FILE **, PyObject **);
43-
PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *);
4441
PyAPI_FUNC(void) _PyImport_ReInitLock(void);
4542

4643
PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *);

Python/import.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,22 +1790,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
17901790
return fdp;
17911791
}
17921792

1793-
/* Helpers for main.c
1794-
* Find the source file corresponding to a named module
1795-
*/
1796-
struct filedescr *
1797-
_PyImport_FindModule(const char *name, PyObject *path, char *buf,
1798-
size_t buflen, FILE **p_fp, PyObject **p_loader)
1799-
{
1800-
return find_module((char *) name, (char *) name, path,
1801-
buf, buflen, p_fp, p_loader);
1802-
}
1803-
1804-
PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr * fd)
1805-
{
1806-
return fd->type == PY_SOURCE || fd->type == PY_COMPILED;
1807-
}
1808-
18091793
/* case_ok(char* buf, Py_ssize_t len, Py_ssize_t namelen, char* name)
18101794
* The arguments here are tricky, best shown by example:
18111795
* /a/b/c/d/e/f/g/h/i/j/k/some_long_module_name.py\0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy