diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-07-23 00:37:28 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-07-23 00:37:28 +0000 |
commit | 48de2b01a541d5652cbc922d5053a3f84a82fcb1 (patch) | |
tree | eb7c34fed933b81f6da5b34cd56df20a1a0dcd04 | |
parent | da0650c1799035022f136e45c6de2e85d9e7508f (diff) | |
download | portage-48de2b01a541d5652cbc922d5053a3f84a82fcb1.tar.gz portage-48de2b01a541d5652cbc922d5053a3f84a82fcb1.tar.bz2 portage-48de2b01a541d5652cbc922d5053a3f84a82fcb1.zip |
Return tuples instead of lists from getboth functions and methods.
svn path=/main/trunk/; revision=4009
-rw-r--r-- | pym/xpak.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/xpak.py b/pym/xpak.py index 375ad22b6..dff1ab70e 100644 --- a/pym/xpak.py +++ b/pym/xpak.py @@ -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 |