Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

        def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
    global _opener
    if _opener is None:
        _opener = build_opener()
    return _opener.open(url, data, timeout)
        


src/b/i/Bio_Eutils-1.63/Bio_Eutils/Entrez/__init__.py   Bio_Eutils(Download)
 
#Importing these functions with leading underscore as not intended for reuse
from Bio_Eutils._py3k import urlopen as _urlopen
from Bio_Eutils._py3k import urlencode as _urlencode
from Bio_Eutils._py3k import HTTPError as _HTTPError
        if post:
            #HTTP POST
            handle = _urlopen(cgi, data=_as_bytes(options))
        else:
            #HTTP GET
            cgi += "?" + options
            handle = _urlopen(cgi)

src/b/i/Bio_Eutils-1.63/Bio_Eutils/Entrez/Parser.py   Bio_Eutils(Download)
 
#Importing these functions with leading underscore as not intended for reuse
from Bio_Eutils._py3k import urlopen as _urlopen
from Bio_Eutils._py3k import urlparse as _urlparse
from Bio_Eutils._py3k import unicode
            warnings.warn(message)
            try:
                handle = _urlopen(url)
            except IOError:
                raise RuntimeException("Failed to access %s at %s" % (filename, url))