Mercurial > kallithea
diff scripts/logformat.py @ 7844:a8e6bb9ee9ea
future: use Python print function
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 18 Aug 2019 20:25:18 +0200 |
parents | 63b548dd5ef3 |
children | aa6f17a53b49 |
line wrap: on
line diff
--- a/scripts/logformat.py Sun Aug 18 20:27:50 2019 +0200 +++ b/scripts/logformat.py Sun Aug 18 20:25:18 2019 +0200 @@ -1,5 +1,7 @@ #!/usr/bin/env python2 +from __future__ import print_function + import re import sys @@ -38,9 +40,9 @@ if __name__ == '__main__': if len(sys.argv) < 2: - print 'Cleanup of superfluous % formatting of log statements.' - print 'Usage:' - print ''' hg revert `hg loc '*.py'|grep -v logformat.py` && scripts/logformat.py `hg loc '*.py'` && hg diff''' + print('Cleanup of superfluous % formatting of log statements.') + print('Usage:') + print(''' hg revert `hg loc '*.py'|grep -v logformat.py` && scripts/logformat.py `hg loc '*.py'` && hg diff''') raise SystemExit(1) for f in sys.argv[1:]: