1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed creation of html docs on python 3.

Thanks to Alan Lu for the report and the patch.
This commit is contained in:
Florian Apolloner 2013-02-24 15:44:50 +01:00
parent c35f2e67c1
commit a5733fcd7b

View File

@ -204,7 +204,7 @@ class DjangoStandaloneHTMLBuilder(StandaloneHTMLBuilder):
if t == "templatefilter" and l == "ref/templates/builtins"],
}
outfilename = os.path.join(self.outdir, "templatebuiltins.js")
with open(outfilename, 'wb') as fp:
with open(outfilename, 'w') as fp:
fp.write('var django_template_builtins = ')
json.dump(templatebuiltins, fp)
fp.write(';\n')