From ce959f18be71f5a57368cd4c2fc2596a60304456 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 2 Feb 2023 04:18:24 +0100 Subject: [PATCH] Convert `unichr` calls to `chr` --- unimore_bda_6/vendor/potts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unimore_bda_6/vendor/potts.py b/unimore_bda_6/vendor/potts.py index 27da7e6..ff98e12 100644 --- a/unimore_bda_6/vendor/potts.py +++ b/unimore_bda_6/vendor/potts.py @@ -172,7 +172,7 @@ class Tokenizer: entnum = ent[2:-1] try: entnum = int(entnum) - s = s.replace(ent, unichr(entnum)) + s = s.replace(ent, chr(entnum)) except: pass # Now the alpha versions: @@ -181,7 +181,7 @@ class Tokenizer: for ent in ents: entname = ent[1:-1] try: - s = s.replace(ent, unichr(html.entities.name2codepoint[entname])) + s = s.replace(ent, chr(html.entities.name2codepoint[entname])) except: pass s = s.replace(amp, " and ")