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
b43ad1d5
Kaydet (Commit)
b43ad1d5
authored
Eki 31, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleanup _Unpickler_SkipConsumed(): remove 1 level of indentation
üst
fa6ab0fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
_pickle.c
Modules/_pickle.c
+15
-12
No files found.
Modules/_pickle.c
Dosyayı görüntüle @
b43ad1d5
...
@@ -872,18 +872,21 @@ _Unpickler_SetStringInput(UnpicklerObject *self, PyObject *input)
...
@@ -872,18 +872,21 @@ _Unpickler_SetStringInput(UnpicklerObject *self, PyObject *input)
static
int
static
int
_Unpickler_SkipConsumed
(
UnpicklerObject
*
self
)
_Unpickler_SkipConsumed
(
UnpicklerObject
*
self
)
{
{
Py_ssize_t
consumed
=
self
->
next_read_idx
-
self
->
prefetched_idx
;
Py_ssize_t
consumed
;
PyObject
*
r
;
if
(
consumed
>
0
)
{
PyObject
*
r
;
consumed
=
self
->
next_read_idx
-
self
->
prefetched_idx
;
assert
(
self
->
peek
);
/* otherwise we did something wrong */
if
(
consumed
<=
0
)
/* This makes an useless copy... */
return
0
;
r
=
PyObject_CallFunction
(
self
->
read
,
"n"
,
consumed
);
if
(
r
==
NULL
)
assert
(
self
->
peek
);
/* otherwise we did something wrong */
return
-
1
;
/* This makes an useless copy... */
Py_DECREF
(
r
);
r
=
PyObject_CallFunction
(
self
->
read
,
"n"
,
consumed
);
self
->
prefetched_idx
=
self
->
next_read_idx
;
if
(
r
==
NULL
)
}
return
-
1
;
Py_DECREF
(
r
);
self
->
prefetched_idx
=
self
->
next_read_idx
;
return
0
;
return
0
;
}
}
...
...
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