From 0600f750ef142dc1594bc489d17a43453a74ea80 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 21 Dec 2016 12:59:28 +0200 Subject: Issue #28992: Use bytes.fromhex(). --- Lib/test/multibytecodec_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/multibytecodec_support.py') diff --git a/Lib/test/multibytecodec_support.py b/Lib/test/multibytecodec_support.py index f9884c68eb..813b7aa1bd 100644 --- a/Lib/test/multibytecodec_support.py +++ b/Lib/test/multibytecodec_support.py @@ -338,7 +338,7 @@ class TestBase_Mapping(unittest.TestCase): uc = re.findall('', ucmdata) for uni, coded in uc: unich = chr(int(uni, 16)) - codech = bytes(int(c, 16) for c in coded.split()) + codech = bytes.fromhex(coded) self._testpoint(codech, unich) def test_mapping_supplemental(self): -- cgit v1.2.1