[pypy-svn] r69150 - pypy/branch/py11/pypy/doc

hpk at codespeak.net hpk at codespeak.net
Wed Nov 11 11:40:26 CET 2009


Author: hpk
Date: Wed Nov 11 11:40:25 2009
New Revision: 69150

Modified:
   pypy/branch/py11/pypy/doc/confrest_oldpy.py
Log:
write doc html to a raw file


Modified: pypy/branch/py11/pypy/doc/confrest_oldpy.py
==============================================================================
--- pypy/branch/py11/pypy/doc/confrest_oldpy.py	(original)
+++ pypy/branch/py11/pypy/doc/confrest_oldpy.py	Wed Nov 11 11:40:25 2009
@@ -186,7 +186,9 @@
                      id = 'docinfoline'))
 
         page.contentspace.append(py.xml.raw(content))
-        outputpath.ensure().write(page.unicode().encode(encoding)) 
+        f = outputpath.open('w')
+        f.write(page.unicode().encode(encoding))
+        f.close()
 
 # XXX this function comes from apigen/linker.py, put it
 # somewhere in py lib 



More information about the Pypy-commit mailing list