[pypy-svn] r63498 - pypy/branch/igorto/pypy/module/gdbm
igorto at codespeak.net
igorto at codespeak.net
Wed Apr 1 18:14:06 CEST 2009
Author: igorto
Date: Wed Apr 1 18:14:03 2009
New Revision: 63498
Modified:
pypy/branch/igorto/pypy/module/gdbm/gdbm.py
Log:
fix gdbm_store convert str to CHARP
Modified: pypy/branch/igorto/pypy/module/gdbm/gdbm.py
==============================================================================
--- pypy/branch/igorto/pypy/module/gdbm/gdbm.py (original)
+++ pypy/branch/igorto/pypy/module/gdbm/gdbm.py Wed Apr 1 18:14:03 2009
@@ -52,7 +52,9 @@
return self.space.wrap(res_gdbm)
def gdbm_fetch(self, key):
- return self.space.wrap(fetch_gdbm(self.struct_gdbm, key))
+ c_key = str2charp(key)
+ res = fetch_gdbm(self.struct_gdbm, c_key)
+ return self.space.wrap(res)
def gdbm_close(self):
close_gdbm(self.struct_gdbm)
More information about the Pypy-commit
mailing list