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
bb72c479
Kaydet (Commit)
bb72c479
authored
Nis 19, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use PyArg_ParseTuple (new API) instead of PyArg_Parse (old API) for parsing tuples.
üst
5cc9c4fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
textio.c
Modules/_io/textio.c
+5
-5
No files found.
Modules/_io/textio.c
Dosyayı görüntüle @
bb72c479
...
...
@@ -538,7 +538,7 @@ _io_IncrementalNewlineDecoder_getstate_impl(nldecoder_object *self)
_PyIO_str_getstate
,
NULL
);
if
(
state
==
NULL
)
return
NULL
;
if
(
!
PyArg_Parse
(
state
,
"(OK)
"
,
&
buffer
,
&
flag
))
{
if
(
!
PyArg_Parse
Tuple
(
state
,
"OK
"
,
&
buffer
,
&
flag
))
{
Py_DECREF
(
state
);
return
NULL
;
}
...
...
@@ -569,7 +569,7 @@ _io_IncrementalNewlineDecoder_setstate(nldecoder_object *self,
PyObject
*
buffer
;
unsigned
PY_LONG_LONG
flag
;
if
(
!
PyArg_Parse
(
state
,
"(OK)
"
,
&
buffer
,
&
flag
))
if
(
!
PyArg_Parse
Tuple
(
state
,
"OK
"
,
&
buffer
,
&
flag
))
return
NULL
;
self
->
pendingcr
=
(
int
)
(
flag
&
1
);
...
...
@@ -1449,7 +1449,7 @@ textiowrapper_read_chunk(textio *self, Py_ssize_t size_hint)
/* Given this, we know there was a valid snapshot point
* len(dec_buffer) bytes ago with decoder state (b'', dec_flags).
*/
if
(
PyArg_Parse
(
state
,
"(OO)
"
,
&
dec_buffer
,
&
dec_flags
)
<
0
)
{
if
(
PyArg_Parse
Tuple
(
state
,
"OO
"
,
&
dec_buffer
,
&
dec_flags
)
<
0
)
{
Py_DECREF
(
state
);
return
-
1
;
}
...
...
@@ -2305,7 +2305,7 @@ _io_TextIOWrapper_tell_impl(textio *self)
goto
fail
;
/* Skip backward to the snapshot point (see _read_chunk). */
if
(
!
PyArg_Parse
(
self
->
snapshot
,
"(iO)
"
,
&
cookie
.
dec_flags
,
&
next_input
))
if
(
!
PyArg_Parse
Tuple
(
self
->
snapshot
,
"iO
"
,
&
cookie
.
dec_flags
,
&
next_input
))
goto
fail
;
assert
(
PyBytes_Check
(
next_input
));
...
...
@@ -2331,7 +2331,7 @@ _io_TextIOWrapper_tell_impl(textio *self)
_PyIO_str_getstate, NULL); \
if (_state == NULL) \
goto fail; \
if (!PyArg_Parse
(_state, "(y#i)
", &dec_buffer, &dec_buffer_len, &dec_flags)) { \
if (!PyArg_Parse
Tuple(_state, "y#i
", &dec_buffer, &dec_buffer_len, &dec_flags)) { \
Py_DECREF(_state); \
goto fail; \
} \
...
...
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