Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e6b299fa
Kaydet (Commit)
e6b299fa
authored
Nis 14, 2012
tarafından
Brian Curtin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix Windows build
üst
73def61e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
import.c
Python/import.c
+4
-3
No files found.
Python/import.c
Dosyayı görüntüle @
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