Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bc27a050
Commit
bc27a050
authored
Feb 06, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
parent
5e028ae0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/configparser.py
Lib/configparser.py
+2
-2
Lib/distutils/command/register.py
Lib/distutils/command/register.py
+1
-1
Lib/test/test_hash.py
Lib/test/test_hash.py
+1
-1
No files found.
Lib/configparser.py
View file @
bc27a050
...
...
@@ -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
View file @
bc27a050
...
...
@@ -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
View file @
bc27a050
...
...
@@ -138,7 +138,7 @@ class HashRandomizationTests:
# an object to be tested
def
get_hash_command
(
self
,
repr_
):
return
'print(hash(
%s
))'
%
repr_
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