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

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

src/b/i/biopython-HEAD/Tests/test_bgzf.py   biopython(Download)
    def check_text(self, old_file, new_file):
        """Check text mode using explicit open/close"""
        h = open(old_file)  # text mode!
        old_line = h.readline()
        old = old_line + h.read()
        h.close()
 
        h = bgzf.BgzfReader(new_file, "r")  # Text mode!
        new_line = h.readline()

src/b/i/biopython-1.63/Tests/test_bgzf.py   biopython(Download)
    def check_text(self, old_file, new_file):
        h = open(old_file)  # text mode!
        old_line = h.readline()
        old = old_line + h.read()
        h.close()
 
        h = bgzf.BgzfReader(new_file, "r")  # Text mode!
        new_line = h.readline()