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
7c0b0cc9
Commit
7c0b0cc9
authored
Dec 07, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #11051: Reduce the number of syscalls per import.
parent
3be637e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Python/import.c
Python/import.c
+1
-2
No files found.
Python/import.c
View file @
7c0b0cc9
...
@@ -1944,8 +1944,7 @@ find_module_path_list(PyObject *fullname, PyObject *name,
...
@@ -1944,8 +1944,7 @@ find_module_path_list(PyObject *fullname, PyObject *name,
if
(
Py_VerboseFlag
>
1
)
if
(
Py_VerboseFlag
>
1
)
PySys_FormatStderr
(
"# trying %R
\n
"
,
filename
);
PySys_FormatStderr
(
"# trying %R
\n
"
,
filename
);
if
(
_Py_stat
(
filename
,
&
statbuf
)
==
0
&&
/* it exists */
if
(
_Py_stat
(
filename
,
&
statbuf
)
!=
0
||
S_ISDIR
(
statbuf
.
st_mode
))
S_ISDIR
(
statbuf
.
st_mode
))
/* it's a directory */
{
{
Py_DECREF
(
filename
);
Py_DECREF
(
filename
);
continue
;
continue
;
...
...
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