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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/e/seq_crumbs-HEAD/crumbs/utils/optional_modules.py   seq_crumbs(Download)
 
try:
    from Bio.bgzf import BgzfWriter
except ImportError:
    BgzfWriter = create_fake_class(MSG + BIO_BGZF)

src/s/e/seq_crumbs-HEAD/setup.py   seq_crumbs(Download)
    if not msg:
        try:
            from Bio.bgzf import BgzfWriter
        except ImportError:
            msg = 'You have an old version of Biopython installed, '

src/b/i/biopython-1.63/Tests/test_bgzf.py   biopython(Download)
        h.close()
 
        h = bgzf.BgzfWriter(output_file, "wb")
        h.write(data)
        self.assertFalse(h.seekable())

src/b/i/biopython-HEAD/Tests/test_bgzf.py   biopython(Download)
        h.close()
 
        with bgzf.BgzfWriter(output_file, "wb") as h:
            h.write(data)
            self.assertFalse(h.seekable())