Exemplo n.º 1
0
def get_headerinfo_from_url(url):
    c = Curl()
    return c.readheader(url)
Exemplo n.º 2
0
def get_stable_version():
    c = Curl()
    return to_str(c.read(PYTHONBREW_STABLE_VERSION_URL).strip())
Exemplo n.º 3
0
 def download(self, msg, url, path):
     logger.info("Downloading %s as %s" % (msg, path))
     c = Curl()
     c.fetch(url, path)
Exemplo n.º 4
0
def get_stable_version():
    c = Curl()
    return c.read(PYTHONBREW_STABLE_VERSION_URL)
Exemplo n.º 5
0
def get_headerinfo_from_url(url):
    c = Curl()
    return c.readheader(url)
Exemplo n.º 6
0
 def download(self, msg, url, path):
     logger.info("Downloading %s as %s" % (msg, path))
     c = Curl()
     c.fetch(url, path)
Exemplo n.º 7
0
def get_stable_version():
    c = Curl()
    return to_str(c.read(PYTHONBREW_STABLE_VERSION_URL).strip())
Exemplo n.º 8
0
 def download(self, msg, url, path, _hash = None):
     logger.info("Downloading %s as %s" % (msg, path))
     c = Curl()
     c.fetch(url, path)
     if _hash:
         self.check_hash(msg, path, _hash)