Return tuples instead of lists from getboth functions and methods.
authorZac Medico <zmedico@gentoo.org>
Sun, 23 Jul 2006 00:37:28 +0000 (00:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 23 Jul 2006 00:37:28 +0000 (00:37 -0000)
svn path=/main/trunk/; revision=4009

pym/xpak.py

index 375ad22b68e0cdbcd8575137ebfa18c0e138d462..dff1ab70eaa2553e1a40e4c2e7659c23a1f43652 100644 (file)
@@ -154,7 +154,7 @@ def getboth(infile):
        myindex=myfile.read(indexsize)
        mydata=myfile.read(datasize)
        myfile.close()
-       return [myindex,mydata]
+       return myindex, mydata
 
 def listindex(myindex):
        """Print to the terminal the filenames listed in the indexglob passed in."""
@@ -417,5 +417,5 @@ class tbz2:
                mydata =a.read(self.datasize)
                a.close()
 
-               return [self.index[:],mydata]
+               return self.index, mydata