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
e6b299fa
Commit
e6b299fa
authored
Apr 14, 2012
by
Brian Curtin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows build
parent
73def61e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Python/import.c
Python/import.c
+4
-3
No files found.
Python/import.c
View file @
e6b299fa
...
...
@@ -2963,7 +2963,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals,
Py_INCREF
(
abs_name
);
}
#if WITH_THREAD
#if
def
WITH_THREAD
_PyImport_AcquireLock
();
#endif
/* From this point forward, goto error_with_unlock! */
...
...
@@ -2999,13 +2999,14 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals,
if
(
PyObject_Not
(
fromlist
))
{
if
(
level
==
0
||
PyUnicode_GET_LENGTH
(
name
)
>
0
)
{
PyObject
*
front
=
NULL
;
PyObject
*
partition
=
NULL
;
PyObject
*
borrowed_dot
=
_PyUnicode_FromId
(
&
single_dot
);
if
(
borrowed_dot
==
NULL
)
{
goto
error_with_unlock
;
}
PyObject
*
partition
=
PyUnicode_Partition
(
name
,
borrowed_dot
);
partition
=
PyUnicode_Partition
(
name
,
borrowed_dot
);
if
(
partition
==
NULL
)
{
goto
error_with_unlock
;
}
...
...
@@ -3043,7 +3044,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals,
NULL
);
}
error_with_unlock:
#if WITH_THREAD
#if
def
WITH_THREAD
if
(
_PyImport_ReleaseLock
()
<
0
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
"not holding the import lock"
);
}
...
...
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