From 48de2b01a541d5652cbc922d5053a3f84a82fcb1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 23 Jul 2006 00:37:28 +0000 Subject: [PATCH] Return tuples instead of lists from getboth functions and methods. svn path=/main/trunk/; revision=4009 --- pym/xpak.py | 4 ++-- 1 file 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 -- 2.26.2