From 84fc66dd020931c14be8b13fcbdb9a8f295141c9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 3 May 2007 17:18:26 +0000 Subject: Rename 'unicode' to 'str' in its tp_name field. Rename 'str' to 'str8'. Change all occurrences of unichr to chr. --- Lib/test/test_normalization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_normalization.py') diff --git a/Lib/test/test_normalization.py b/Lib/test/test_normalization.py index a48af4de42..1331e5165b 100644 --- a/Lib/test/test_normalization.py +++ b/Lib/test/test_normalization.py @@ -28,7 +28,7 @@ def unistr(data): for x in data: if x > sys.maxunicode: raise RangeError - return "".join([unichr(x) for x in data]) + return "".join([chr(x) for x in data]) class NormalizationTest(unittest.TestCase): def test_main(self): @@ -77,7 +77,7 @@ class NormalizationTest(unittest.TestCase): # Perform tests for all other data for c in range(sys.maxunicode+1): - X = unichr(c) + X = chr(c) if X in part1_data: continue self.failUnless(X == NFC(X) == NFD(X) == NFKC(X) == NFKD(X), c) -- cgit v1.2.1