Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6b06da53
Commit
6b06da53
authored
Aug 17, 2010
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
parent
0e5a41b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
Include/import.h
Include/import.h
+0
-3
Python/import.c
Python/import.c
+0
-16
No files found.
Include/import.h
View file @
6b06da53
...
...
@@ -38,9 +38,6 @@ PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
#define _PyImport_ReleaseLock() 1
#endif
PyAPI_FUNC
(
struct
filedescr
*
)
_PyImport_FindModule
(
const
char
*
,
PyObject
*
,
char
*
,
size_t
,
FILE
**
,
PyObject
**
);
PyAPI_FUNC
(
int
)
_PyImport_IsScript
(
struct
filedescr
*
);
PyAPI_FUNC
(
void
)
_PyImport_ReInitLock
(
void
);
PyAPI_FUNC
(
PyObject
*
)
_PyImport_FindExtension
(
char
*
,
char
*
);
...
...
Python/import.c
View file @
6b06da53
...
...
@@ -1790,22 +1790,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
return
fdp
;
}
/* Helpers for main.c
* Find the source file corresponding to a named module
*/
struct
filedescr
*
_PyImport_FindModule
(
const
char
*
name
,
PyObject
*
path
,
char
*
buf
,
size_t
buflen
,
FILE
**
p_fp
,
PyObject
**
p_loader
)
{
return
find_module
((
char
*
)
name
,
(
char
*
)
name
,
path
,
buf
,
buflen
,
p_fp
,
p_loader
);
}
PyAPI_FUNC
(
int
)
_PyImport_IsScript
(
struct
filedescr
*
fd
)
{
return
fd
->
type
==
PY_SOURCE
||
fd
->
type
==
PY_COMPILED
;
}
/* case_ok(char* buf, Py_ssize_t len, Py_ssize_t namelen, char* name)
* The arguments here are tricky, best shown by example:
* /a/b/c/d/e/f/g/h/i/j/k/some_long_module_name.py\0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment