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
714f8782
Kaydet (Commit)
714f8782
authored
Nis 04, 2005
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix typos.
üst
7a6dc139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
codecs.py
Lib/codecs.py
+2
-2
No files found.
Lib/codecs.py
Dosyayı görüntüle @
714f8782
...
@@ -312,9 +312,9 @@ class StreamReader(Codec):
...
@@ -312,9 +312,9 @@ class StreamReader(Codec):
self
.
atcr
=
data
.
endswith
(
u"
\r
"
)
self
.
atcr
=
data
.
endswith
(
u"
\r
"
)
# If we're at a "\r" (and are allowed to read more), read one
# If we're at a "\r" (and are allowed to read more), read one
# extra character (which might be a "\n") to get a proper
# extra character (which might be a "\n") to get a proper
# line ending (If the stream is temporarily exhausted we return
# line ending
.
(If the stream is temporarily exhausted we return
# the wrong line ending, but at least we won't generate a bogus
# the wrong line ending, but at least we won't generate a bogus
# second line.
# second line.
)
if
self
.
atcr
and
size
is
None
:
if
self
.
atcr
and
size
is
None
:
data
+=
self
.
read
(
size
=
1
,
chars
=
1
)
data
+=
self
.
read
(
size
=
1
,
chars
=
1
)
self
.
atcr
=
data
.
endswith
(
u"
\r
"
)
self
.
atcr
=
data
.
endswith
(
u"
\r
"
)
...
...
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