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
a26b3f18
Kaydet (Commit)
a26b3f18
authored
Şub 06, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
üst
a146bef0
bc27a050
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
base64.py
Lib/base64.py
+1
-1
configparser.py
Lib/configparser.py
+2
-2
register.py
Lib/distutils/command/register.py
+1
-1
test_hash.py
Lib/test/test_hash.py
+1
-1
No files found.
Lib/base64.py
Dosyayı görüntüle @
a26b3f18
...
...
@@ -362,7 +362,7 @@ def a85decode(b, *, foldspaces=False, adobe=False, ignorechars=b' \t\n\r\v'):
if
adobe
:
if
not
(
b
.
startswith
(
_A85START
)
and
b
.
endswith
(
_A85END
)):
raise
ValueError
(
"Ascii85 encoded byte sequences must be bracketed "
"by {
} and {
}"
.
format
(
_A85START
,
_A85END
))
"by {
!r} and {!r
}"
.
format
(
_A85START
,
_A85END
))
b
=
b
[
2
:
-
2
]
# Strip off start/end markers
#
# We have to go through this stepwise, so as to ignore spaces and handle
...
...
Lib/configparser.py
Dosyayı görüntüle @
a26b3f18
...
...
@@ -286,7 +286,7 @@ class ParsingError(Error):
raise
ValueError
(
"Required argument `source' not given."
)
elif
filename
:
source
=
filename
Error
.
__init__
(
self
,
'Source contains parsing errors:
%
s
'
%
source
)
Error
.
__init__
(
self
,
'Source contains parsing errors:
%
r
'
%
source
)
self
.
source
=
source
self
.
errors
=
[]
self
.
args
=
(
source
,
)
...
...
@@ -322,7 +322,7 @@ class MissingSectionHeaderError(ParsingError):
def
__init__
(
self
,
filename
,
lineno
,
line
):
Error
.
__init__
(
self
,
'File contains no section headers.
\n
file:
%
s
, line:
%
d
\n
%
r'
%
'File contains no section headers.
\n
file:
%
r
, line:
%
d
\n
%
r'
%
(
filename
,
lineno
,
line
))
self
.
source
=
filename
self
.
lineno
=
lineno
...
...
Lib/distutils/command/register.py
Dosyayı görüntüle @
a26b3f18
...
...
@@ -300,5 +300,5 @@ Your selection [default 1]: ''', log.INFO)
result
=
200
,
'OK'
if
self
.
show_response
:
dashes
=
'-'
*
75
self
.
announce
(
'
%
s
%
s
%
s'
%
(
dashes
,
data
,
dashes
))
self
.
announce
(
'
%
s
%
r
%
s'
%
(
dashes
,
data
,
dashes
))
return
result
Lib/test/test_hash.py
Dosyayı görüntüle @
a26b3f18
...
...
@@ -172,7 +172,7 @@ class HashRandomizationTests:
# an object to be tested
def
get_hash_command
(
self
,
repr_
):
return
'print(hash(eval(
%
r.decode("utf-8"))))'
%
repr_
.
encode
(
"utf-8"
)
return
'print(hash(eval(
%
a)))'
%
repr_
def
get_hash
(
self
,
repr_
,
seed
=
None
):
env
=
os
.
environ
.
copy
()
...
...
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