diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2020-09-08 20:33:25 +0200 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2020-09-08 20:33:25 +0200 |
commit | 203ef1eff6daebab6f95b0b49e6e6a58168073fb (patch) | |
tree | 7defa199f48a34787f980b6400d8bbaa9380039a /scripts | |
parent | e09d4e0cf23d7c6069ddc690942ceb4cd23fd556 (diff) | |
parent | b2c91c70ee536b0472100d1273818f8bb45529fe (diff) | |
download | pygments-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-x | scripts/check_sources.py | 2 | ||||
-rwxr-xr-x | scripts/debug_lexer.py | 2 |
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] |