[pypy-svn] r31232 - pypy/dist/pypy/objspace/std
mwh at codespeak.net
mwh at codespeak.net
Thu Aug 10 16:11:40 CEST 2006
Author: mwh
Date: Thu Aug 10 16:11:40 2006
New Revision: 31232
Modified:
pypy/dist/pypy/objspace/std/dictmultiobject.py
Log:
use os.O_TRUNC (oops)
Modified: pypy/dist/pypy/objspace/std/dictmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/dictmultiobject.py (original)
+++ pypy/dist/pypy/objspace/std/dictmultiobject.py Thu Aug 10 16:11:40 2006
@@ -282,7 +282,7 @@
def report():
os.write(2, "starting to report!\n")
- fd = os.open('dictinfo.txt', os.O_CREAT|os.O_WRONLY, 0644)
+ fd = os.open('dictinfo.txt', os.O_CREAT|os.O_WRONLY|os.O_TRUNC, 0644)
for info in _dict_infos:
os.write(fd, '------------------\n')
_report_one(fd, info)
More information about the Pypy-commit
mailing list