Skip to content
Browse files

Fixed creation of html docs on python 3.

Thanks to Alan Lu for the report and the patch.
  • Loading branch information...
1 parent c35f2e6 commit a5733fcd7be7adb8b236825beff4ccda19900f9e @apollo13 apollo13 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/_ext/djangodocs.py
View
2 docs/_ext/djangodocs.py
@@ -204,7 +204,7 @@ def finish(self):
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')

0 comments on commit a5733fc

Please sign in to comment.
Something went wrong with that request. Please try again.