comment
This commit is contained in:
parent
f4c0c9edc1
commit
528547bf94
@ -26,7 +26,7 @@ class ZipExtractor:
|
|||||||
cmd = "unzip -p '%s' '%s'"%(self.zipfile, name)
|
cmd = "unzip -p '%s' '%s'"%(self.zipfile, name)
|
||||||
f = os.popen(cmd, "r")
|
f = os.popen(cmd, "r")
|
||||||
data = f.read()
|
data = f.read()
|
||||||
# em.rclog("data: %s" % data)
|
# self.em.rclog("data: %s" % data)
|
||||||
status = f.close()
|
status = f.close()
|
||||||
if status:
|
if status:
|
||||||
return (False, "")
|
return (False, "")
|
||||||
@ -48,7 +48,7 @@ class ZipExtractor:
|
|||||||
|
|
||||||
def getnext(self, params):
|
def getnext(self, params):
|
||||||
if self.currentindex >= len(self.contents):
|
if self.currentindex >= len(self.contents):
|
||||||
#em.rclog("getnext: EOF hit")
|
#self.em.rclog("getnext: EOF hit")
|
||||||
return (False, "", "", 1)
|
return (False, "", "", 1)
|
||||||
else:
|
else:
|
||||||
ret= self.extractone(self.contents[self.currentindex].rstrip("\n"))
|
ret= self.extractone(self.contents[self.currentindex].rstrip("\n"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user