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:
parent
c35f2e67c1
commit
a5733fcd7b
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user