summaryrefslogtreecommitdiff
path: root/pygments/formatters
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-02 12:16:26 +0100
committerGeorg Brandl <georg@python.org>2016-02-02 12:16:26 +0100
commit18b6f332c94424e4e3f659cbbb0e04801ae59e66 (patch)
tree52b417001a4d66b0dde7a8c9848afeafb6509a41 /pygments/formatters
parent563537916d03b426970e07a0c604262770b870cd (diff)
downloadpygments-18b6f332c94424e4e3f659cbbb0e04801ae59e66.tar.gz
Make "make mapfiles" Python3 compatible.
Diffstat (limited to 'pygments/formatters')
-rwxr-xr-xpygments/formatters/_mapping.py2
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)