summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-09-08 20:20:19 +0200
committerGitHub <noreply@github.com>2020-09-08 20:20:19 +0200
commit9f5672672bd61f7149d2a165b49f0617a1a9fe8e (patch)
treead3d62c5c167c6a75edf67a88c20341c77566c7e /scripts
parentd9a9e9ee40eb9815ecc3d9ec9d6f5e57499009d2 (diff)
downloadpygments-git-9f5672672bd61f7149d2a165b49f0617a1a9fe8e.tar.gz
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_sources.py2
-rwxr-xr-xscripts/debug_lexer.py2
2 files changed, 2 insertions, 2 deletions
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]