gh-102507 Remove invisible pagebreak characters (#102531)

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
JosephSBoyle 2023-03-08 13:58:14 +00:00 • committed by GitHub
parent 401d7a7f00
commit b097925858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 6 additions and 45 deletions

View file

@ -174,7 +174,6 @@ DEFAULTKEYWORDS = ', '.join(default_keywords)
EMPTYSTRING = ''
# The normal pot-file header. msgmerge and Emacs's po-mode work better if it's
# there.
pot_header = _('''\
@ -196,7 +195,7 @@ msgstr ""
''')
def usage(code, msg=''):
print(__doc__ % globals(), file=sys.stderr)
if msg:
@ -204,7 +203,6 @@ def usage(code, msg=''):
sys.exit(code)
def make_escapes(pass_nonascii):
global escapes, escape
if pass_nonascii:
@ -258,7 +256,7 @@ def normalize(s, encoding):
s = '""\n"' + lineterm.join(lines) + '"'
return s
def containsAny(str, set):
"""Check whether 'str' contains ANY of the chars in 'set'"""
return 1 in [c in str for c in set]
@ -307,7 +305,7 @@ def getFilesForName(name):
return []
class TokenEater:
def __init__(self, options):
self.__options = options
@ -515,7 +513,6 @@ class TokenEater:
print('msgstr ""\n', file=fp)
def main():
global default_keywords
try:
@ -675,7 +672,7 @@ def main():
if closep:
fp.close()
if __name__ == '__main__':
main()
# some more test strings