From a5733fcd7be7adb8b236825beff4ccda19900f9e Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 24 Feb 2013 15:44:50 +0100 Subject: [PATCH] Fixed creation of html docs on python 3. Thanks to Alan Lu for the report and the patch. --- docs/_ext/djangodocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 6c0e1892f4..e539675786 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -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')