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
e9631e5d
Commit
e9631e5d
authored
Oct 17, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
parents
a3f862e9
31605ace
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Misc/NEWS
Misc/NEWS
+2
-0
Tools/unicode/comparecodecs.py
Tools/unicode/comparecodecs.py
+1
-1
No files found.
Misc/NEWS
View file @
e9631e5d
...
...
@@ -207,5 +207,7 @@ Documentation
Tools/Demos
-----------
- Issue #15378: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.
**(For information about older versions, consult the HISTORY file.)**
Tools/unicode/comparecodecs.py
View file @
e9631e5d
...
...
@@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2):
mismatch
+=
1
# Check decoding
for
i
in
range
(
256
):
c
=
chr
(
i
)
c
=
bytes
([
i
]
)
try
:
u1
=
c
.
decode
(
encoding1
)
except
UnicodeError
:
...
...
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