Author: anatoly techtonik <techto...@gmail.com> Branch: Changeset: r70545:98d1457a6766 Date: 2014-04-10 13:52 +0300 http://bitbucket.org/pypy/pypy/changeset/98d1457a6766/
Log: makeref: Write file in binary mode for compatibility with Windows diff --git a/pypy/doc/tool/makeref.py b/pypy/doc/tool/makeref.py --- a/pypy/doc/tool/makeref.py +++ b/pypy/doc/tool/makeref.py @@ -52,7 +52,7 @@ lines.append(".. _`%s`: %s" %(linknamelist[-1], linktarget)) lines.append('') - reffile.write("\n".join(lines)) + reffile.write("\n".join(lines), mode="wb") print "wrote %d references to %r" %(len(lines), reffile) #print "last ten lines" #for x in lines[-10:]: print x _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit