``open()``, since Mako reads the templates with ``'rb'``, thus preventing
CRs from being doubled up as has been observed on windows.
fixes #234
def template_to_file(template_file, dest, **kw):
- with open(dest, 'w') as f:
+ with open(dest, 'wb') as f:
f.write(
Template(filename=template_file).render(**kw)
)
.. changelog::
:version: 0.7.0
+ .. change::
+ :tags: bug, templates
+ :tickets: 234
+
+ Revision files are now written out using the ``'wb'`` modifier to
+ ``open()``, since Mako reads the templates with ``'rb'``, thus preventing
+ CRs from being doubled up as has been observed on windows.
+
.. change::
:tags: bug, operations
:tickets: 230