Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def unzip(dest, src):
    zipped = zipfile.ZipFile(src)
    print "Unzipping file..."
    try:
        zipped.extractall(dest)
    except:
        args = ["unzip", "-o", "-q", "-d", dest, src]
        proc = subprocess.Popen(args)
        proc.wait()
    print "Successfully unzipped file!"
        


src/m/o/mozcommitbuilder-0.4.11/mozcommitbuilder/builder.py   mozcommitbuilder(Download)
from time import gmtime, strftime
from types import *
from utils import hgId, captureStdout, increment_day, cpuCount, getTestUrl, download_url, unzip, url_base
from trybuild import BuildCaller
import datetime
    def setupTests(self):
        zippedTests = download_url(getTestUrl(),dest=str(os.path.join(self.shellCacheDir,"tests.zip")))
        unzip(self.testDir,zippedTests)
 
    def bisect(self,good,bad, testcondition=None, args_for_condition=[]):

src/m/o/mozcommitbuilder-HEAD/mozcommitbuilder/builder.py   mozcommitbuilder(Download)
from time import gmtime, strftime
from types import *
from utils import hgId, captureStdout, increment_day, cpuCount, getTestUrl, download_url, unzip, url_base
from trybuild import BuildCaller
import datetime
    def setupTests(self):
        zippedTests = download_url(getTestUrl(),dest=str(os.path.join(self.shellCacheDir,"tests.zip")))
        unzip(self.testDir,zippedTests)
 
    def bisect(self,good,bad, testcondition=None, args_for_condition=[]):