From 9f5672672bd61f7149d2a165b49f0617a1a9fe8e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 8 Sep 2020 20:20:19 +0200 Subject: all: remove "u" string prefix (#1536) * all: remove "u" string prefix * util: remove unirange Since Python 3.3, all builds are wide unicode compatible. * unistring: remove support for narrow-unicode builds which stopped being relevant with Python 3.3 --- scripts/check_sources.py | 2 +- scripts/debug_lexer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/check_sources.py b/scripts/check_sources.py index 4c0a27b5..0762c967 100755 --- a/scripts/check_sources.py +++ b/scripts/check_sources.py @@ -197,7 +197,7 @@ def main(argv): if not in_pygments_pkg and checker.only_pkg: continue for lno, msg in checker(fn, lines): - print(u"%s:%d: %s" % (fn, lno, msg), file=out) + print('%s:%d: %s' % (fn, lno, msg), file=out) num += 1 if verbose: print() diff --git a/scripts/debug_lexer.py b/scripts/debug_lexer.py index d00b6102..0f1dc0bd 100755 --- a/scripts/debug_lexer.py +++ b/scripts/debug_lexer.py @@ -86,7 +86,7 @@ class DebuggingRegexLexer(ExtendedRegexLexer): # at EOL, reset state to 'root' ctx.stack = ['root'] statetokens = tokendefs['root'] - yield ctx.pos, Text, u'\n' + yield ctx.pos, Text, '\n' ctx.pos += 1 continue yield ctx.pos, Error, text[ctx.pos] -- cgit v1.2.1