[pypy-svn] r39764 - pypy/dist/pypy/translator/benchmark

mwh at codespeak.net mwh at codespeak.net
Sat Mar 3 11:22:18 CET 2007


Author: mwh
Date: Sat Mar  3 11:22:14 2007
New Revision: 39764

Modified:
   pypy/dist/pypy/translator/benchmark/benchmarks.py
Log:
fake out the unicodedata for the docutils benchmark


Modified: pypy/dist/pypy/translator/benchmark/benchmarks.py
==============================================================================
--- pypy/dist/pypy/translator/benchmark/benchmarks.py	(original)
+++ pypy/dist/pypy/translator/benchmark/benchmarks.py	Sat Mar  3 11:22:14 2007
@@ -68,6 +68,7 @@
     docutilssvnpath = docutilssvnpathfile.read().strip()
     translatetxt = py.magic.autopath().dirpath().dirpath().dirpath().join('doc').join('translation.txt')
     command = """import sys
+sys.modules['unicodedata'] = sys # docutils need 'import unicodedata' to work, but no more...
 sys.path[0:0] = ['%s', '%s/extras']
 from docutils.core import publish_cmdline
 publish_cmdline(writer_name='html')



More information about the Pypy-commit mailing list