[pypy-svn] r74663 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Sat May 22 00:31:15 CEST 2010


Author: afa
Date: Sat May 22 00:31:14 2010
New Revision: 74663

Modified:
   pypy/trunk/pypy/module/cpyext/eval.py
Log:
Fix annotation


Modified: pypy/trunk/pypy/module/cpyext/eval.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/eval.py	(original)
+++ pypy/trunk/pypy/module/cpyext/eval.py	Sat May 22 00:31:14 2010
@@ -85,10 +85,10 @@
     return compiling.eval(space, w_code, w_globals, w_locals)
 
 @cpython_api([CONST_STRING, rffi.INT_real,PyObject, PyObject], PyObject)
-def PyRun_String(space, str, start, w_globals, w_locals):
+def PyRun_String(space, source, start, w_globals, w_locals):
     """This is a simplified interface to PyRun_StringFlags() below, leaving
     flags set to NULL."""
-    source = rffi.charp2str(str)
+    source = rffi.charp2str(source)
     filename = "<string>"
     return run_string(space, source, filename, start, w_globals, w_locals)
 
@@ -98,6 +98,7 @@
     closeit set to 0 and flags set to NULL."""
     BUF_SIZE = 8192
     source = ""
+    filename = charp2str(filename)
     buf = lltype.malloc(rffi.CCHARP.TO, BUF_SIZE, flavor='raw')
     try:
         while True:



More information about the Pypy-commit mailing list