浏览代码

Fixed creation of html docs on python 3.

Thanks to Alan Lu for the report and the patch.
Florian Apolloner 12 年之前
父节点
当前提交
a5733fcd7b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/_ext/djangodocs.py

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