diff options
author | Georg Brandl <georg@python.org> | 2016-02-02 12:16:26 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2016-02-02 12:16:26 +0100 |
commit | 18b6f332c94424e4e3f659cbbb0e04801ae59e66 (patch) | |
tree | 52b417001a4d66b0dde7a8c9848afeafb6509a41 /pygments/formatters | |
parent | 563537916d03b426970e07a0c604262770b870cd (diff) | |
download | pygments-18b6f332c94424e4e3f659cbbb0e04801ae59e66.tar.gz |
Make "make mapfiles" Python3 compatible.
Diffstat (limited to 'pygments/formatters')
-rwxr-xr-x | pygments/formatters/_mapping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/_mapping.py b/pygments/formatters/_mapping.py index 569ae849..01d053dd 100755 --- a/pygments/formatters/_mapping.py +++ b/pygments/formatters/_mapping.py @@ -77,7 +77,7 @@ if __name__ == '__main__': # pragma: no cover footer = content[content.find("if __name__ == '__main__':"):] # write new file - with open(__file__, 'wb') as fp: + with open(__file__, 'w') as fp: fp.write(header) fp.write('FORMATTERS = {\n %s\n}\n\n' % ',\n '.join(found_formatters)) fp.write(footer) |