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
070c4d7c
Kaydet (Commit)
070c4d7c
authored
Ara 09, 2016
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28915: Use _PyObject_CallNoArg()
Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func).
üst
ec80ba46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
callbacks.c
Modules/_ctypes/callbacks.c
+1
-1
connection.c
Modules/_sqlite/connection.c
+2
-2
No files found.
Modules/_ctypes/callbacks.c
Dosyayı görüntüle @
070c4d7c
...
@@ -535,7 +535,7 @@ long Call_CanUnloadNow(void)
...
@@ -535,7 +535,7 @@ long Call_CanUnloadNow(void)
return
E_FAIL
;
return
E_FAIL
;
}
}
result
=
PyObject_CallFunction
(
func
,
NULL
);
result
=
_PyObject_CallNoArg
(
func
);
Py_DECREF
(
func
);
Py_DECREF
(
func
);
if
(
!
result
)
{
if
(
!
result
)
{
PyErr_WriteUnraisable
(
context
?
context
:
Py_None
);
PyErr_WriteUnraisable
(
context
?
context
:
Py_None
);
...
...
Modules/_sqlite/connection.c
Dosyayı görüntüle @
070c4d7c
...
@@ -645,7 +645,7 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
...
@@ -645,7 +645,7 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
aggregate_instance
=
(
PyObject
**
)
sqlite3_aggregate_context
(
context
,
sizeof
(
PyObject
*
));
aggregate_instance
=
(
PyObject
**
)
sqlite3_aggregate_context
(
context
,
sizeof
(
PyObject
*
));
if
(
*
aggregate_instance
==
0
)
{
if
(
*
aggregate_instance
==
0
)
{
*
aggregate_instance
=
PyObject_CallFunction
(
aggregate_class
,
NULL
);
*
aggregate_instance
=
_PyObject_CallNoArg
(
aggregate_class
);
if
(
PyErr_Occurred
())
{
if
(
PyErr_Occurred
())
{
*
aggregate_instance
=
0
;
*
aggregate_instance
=
0
;
...
@@ -933,7 +933,7 @@ static int _progress_handler(void* user_arg)
...
@@ -933,7 +933,7 @@ static int _progress_handler(void* user_arg)
gilstate
=
PyGILState_Ensure
();
gilstate
=
PyGILState_Ensure
();
#endif
#endif
ret
=
PyObject_CallFunction
((
PyObject
*
)
user_arg
,
NULL
);
ret
=
_PyObject_CallNoArg
((
PyObject
*
)
user_arg
);
if
(
!
ret
)
{
if
(
!
ret
)
{
if
(
_enable_callback_tracebacks
)
{
if
(
_enable_callback_tracebacks
)
{
...
...
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