diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index 98358c9b2d6739..f62b0b051220e7 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -195,6 +195,7 @@ ''') + def usage(code, msg=''): print(__doc__ % globals(), file=sys.stderr) if msg: @@ -304,6 +305,7 @@ def getFilesForName(name): return [] + class TokenEater: def __init__(self, options): self.__options = options @@ -670,6 +672,7 @@ class Options: if closep: fp.close() + if __name__ == '__main__': main() # some more test strings