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
1 changed files with 1 additions and 1 deletions

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')