summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2020-09-08 20:33:25 +0200
committerMatthäus G. Chajdas <dev@anteru.net>2020-09-08 20:33:25 +0200
commit203ef1eff6daebab6f95b0b49e6e6a58168073fb (patch)
tree7defa199f48a34787f980b6400d8bbaa9380039a /scripts
parente09d4e0cf23d7c6069ddc690942ceb4cd23fd556 (diff)
parentb2c91c70ee536b0472100d1273818f8bb45529fe (diff)
downloadpygments-git-bug/angular-html.tar.gz
Merge branch 'master' into bug/angular-htmlbug/angular-html
# Conflicts: # tests/test_shell.py
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]