mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix testcodec.py and test_charmapcodec.py
This commit is contained in:
parent
e53309ce47
commit
eab198d229
2 changed files with 16 additions and 16 deletions
|
|
@ -36,7 +36,7 @@ def getregentry():
|
|||
decoding_map = codecs.make_identity_dict(range(256))
|
||||
decoding_map.update({
|
||||
0x78: "abc", # 1-n decoding mapping
|
||||
"abc": 0x0078,# 1-n encoding mapping
|
||||
str8("abc"): 0x0078,# 1-n encoding mapping
|
||||
0x01: None, # decoding mapping to <undefined>
|
||||
0x79: "", # decoding mapping to <remove character>
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue