[pypy-svn] r62039 - pypy/trunk/pypy/module/_winreg
afa at codespeak.net
afa at codespeak.net
Fri Feb 20 01:15:29 CET 2009
Author: afa
Date: Fri Feb 20 01:15:28 2009
New Revision: 62039
Modified:
pypy/trunk/pypy/module/_winreg/interp_winreg.py
Log:
Use space.newlist to create a wrapped list
Modified: pypy/trunk/pypy/module/_winreg/interp_winreg.py
==============================================================================
--- pypy/trunk/pypy/module/_winreg/interp_winreg.py (original)
+++ pypy/trunk/pypy/module/_winreg/interp_winreg.py Fri Feb 20 01:15:28 2009
@@ -342,7 +342,7 @@
elif typ == rwinreg.REG_MULTI_SZ:
if not buflen:
- return space.wrap([])
+ return space.newlist([])
i = 0
l = []
while i < buflen and buf[i]:
@@ -352,9 +352,10 @@
i += 1
if len(s) == 0:
break
- l.append(''.join(s))
+ s = ''.join(s)
+ l.append(space.wrap(s))
i += 1
- return space.wrap(l)
+ return space.newlist(l)
else: # REG_BINARY and all other types
return space.wrap(rffi.charpsize2str(buf, buflen))
More information about the Pypy-commit
mailing list