From 6b78109fe29dd18a9fb1286d3f0b4f1d12ea7d4f Mon Sep 17 00:00:00 2001 From: PeridexisErrant Date: Fri, 23 Oct 2015 13:06:56 +1100 Subject: [PATCH] Fix encoding issue --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index c7e0d8e86..ea7305c95 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,7 +43,7 @@ def makeIncludeAll(directory, extension): out.append(TEMPLATE.format(dname, f)) if out: # Only write the file if the index is not empty - with open(outputFile, 'w') as outfile: + with open(outputFile, 'w' if sys.version_info.major > 2 else 'wb') as outfile: outfile.write(len(dname)*'=' + '\n' + dname + '\n' + len(dname)*'=' + '\n\n') outfile.write('\n\n'.join(out))