diff options
author | Jean Abou-Samra <jean@abou-samra.fr> | 2022-01-31 22:00:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 22:00:40 +0100 |
commit | c81e97c3c281492ac6fdf4abc841ac5b63f3f303 (patch) | |
tree | 8d52ec56246f4d08a4eb0d16317cc5c261ebfd05 /scripts | |
parent | b1edee0c8f736276a86e30d8edaed1f581e009d0 (diff) | |
download | pygments-git-c81e97c3c281492ac6fdf4abc841ac5b63f3f303.tar.gz |
Remove now redundant re.UNICODE and (?u) (#2058)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_sources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check_sources.py b/scripts/check_sources.py index 612a7ef1..1feb1a33 100755 --- a/scripts/check_sources.py +++ b/scripts/check_sources.py @@ -34,9 +34,9 @@ def checker(*suffixes, **kwds): name_mail_re = r'[\w ]+(<.*?>)?' copyright_re = re.compile(r'^ :copyright: Copyright 2006-2022 by ' - r'the Pygments team, see AUTHORS\.$', re.UNICODE) + r'the Pygments team, see AUTHORS\.$') copyright_2_re = re.compile(r'^ %s(, %s)*[,.]$' % - (name_mail_re, name_mail_re), re.UNICODE) + (name_mail_re, name_mail_re)) is_const_re = re.compile(r'if.*?==\s+(None|False|True)\b') misspellings = ["developement", "adress", "verificate", # ALLOW-MISSPELLING |