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
7c23ea2e
Kaydet (Commit)
7c23ea2e
authored
Ara 06, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't use deprecated aliases.
üst
fbb56ed8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
base64_codec.py
Lib/encodings/base64_codec.py
+4
-4
No files found.
Lib/encodings/base64_codec.py
Dosyayı görüntüle @
7c23ea2e
...
...
@@ -13,11 +13,11 @@ import base64
def
base64_encode
(
input
,
errors
=
'strict'
):
assert
errors
==
'strict'
return
(
base64
.
encode
string
(
input
),
len
(
input
))
return
(
base64
.
encode
bytes
(
input
),
len
(
input
))
def
base64_decode
(
input
,
errors
=
'strict'
):
assert
errors
==
'strict'
return
(
base64
.
decode
string
(
input
),
len
(
input
))
return
(
base64
.
decode
bytes
(
input
),
len
(
input
))
class
Codec
(
codecs
.
Codec
):
def
encode
(
self
,
input
,
errors
=
'strict'
):
...
...
@@ -28,12 +28,12 @@ class Codec(codecs.Codec):
class
IncrementalEncoder
(
codecs
.
IncrementalEncoder
):
def
encode
(
self
,
input
,
final
=
False
):
assert
self
.
errors
==
'strict'
return
base64
.
encode
string
(
input
)
return
base64
.
encode
bytes
(
input
)
class
IncrementalDecoder
(
codecs
.
IncrementalDecoder
):
def
decode
(
self
,
input
,
final
=
False
):
assert
self
.
errors
==
'strict'
return
base64
.
decode
string
(
input
)
return
base64
.
decode
bytes
(
input
)
class
StreamWriter
(
Codec
,
codecs
.
StreamWriter
):
charbuffertype
=
bytes
...
...
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