Return a tuple from searchindex instead of a list.
authorZac Medico <zmedico@gentoo.org>
Sun, 23 Jul 2006 00:31:32 +0000 (00:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 23 Jul 2006 00:31:32 +0000 (00:31 -0000)
svn path=/main/trunk/; revision=4008

pym/xpak.py

index 9c2907ff9da5e2edd754115d86bd650748259681..375ad22b68e0cdbcd8575137ebfa18c0e138d462 100644 (file)
@@ -185,7 +185,7 @@ def searchindex(myindex,myitem):
                                #found
                                datapos=decodeint(myindex[startpos+4+mytestlen:startpos+8+mytestlen]);
                                datalen=decodeint(myindex[startpos+8+mytestlen:startpos+12+mytestlen]);
-                               return [datapos,datalen]
+                               return datapos, datalen
                startpos=startpos+mytestlen+12
                
 def getitem(myid,myitem):