mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Patch #1303: Adapt str8 constructor to bytes (now buffer) one.
This commit is contained in:
parent
97f9d4f312
commit
bd1c68c94f
15 changed files with 212 additions and 72 deletions
|
@ -36,7 +36,7 @@ def getregentry():
|
|||
decoding_map = codecs.make_identity_dict(range(256))
|
||||
decoding_map.update({
|
||||
0x78: "abc", # 1-n decoding mapping
|
||||
str8("abc"): 0x0078,# 1-n encoding mapping
|
||||
str8(b"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