diff options
author | Florian Apolloner <florian@apolloner.eu> | 2013-02-24 15:44:50 +0100 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2013-02-24 15:45:53 +0100 |
commit | a5733fcd7be7adb8b236825beff4ccda19900f9e (patch) | |
tree | 812509ee7f2a68deb974f9b01ac0b5b2902f3339 /docs/_ext/djangodocs.py | |
parent | c35f2e67c1d9d25ea5413a7db820ec7dcde3c39b (diff) | |
download | django-a5733fcd7be7adb8b236825beff4ccda19900f9e.tar.gz |
Fixed creation of html docs on python 3.
Thanks to Alan Lu for the report and the patch.
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r-- | docs/_ext/djangodocs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |