diff options
author | Georg Brandl <georg@python.org> | 2014-01-18 13:25:15 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-18 13:25:15 +0100 |
commit | a9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8 (patch) | |
tree | face5db25ebef227315a0ae1080d4b2262f6fe23 /scripts/get_vimkw.py | |
parent | e921fe0b430608cb7e0c89f7fada9260cb4822eb (diff) | |
download | pygments-a9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8.tar.gz |
futurizing: move to print_function and "except X as Y" syntax
Diffstat (limited to 'scripts/get_vimkw.py')
-rw-r--r-- | scripts/get_vimkw.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/get_vimkw.py b/scripts/get_vimkw.py index 153c88c3..bfb26e64 100644 --- a/scripts/get_vimkw.py +++ b/scripts/get_vimkw.py @@ -1,3 +1,4 @@ +from __future__ import print_function import re from pprint import pprint @@ -31,7 +32,7 @@ def getkw(input, output): for a, b in output_info.items(): b.sort() - print >>out, '%s=[%s]' % (a, ','.join(b)) + print('%s=[%s]' % (a, ','.join(b)), file=out) def is_keyword(w, keywords): for i in range(len(w), 0, -1): |