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

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

src/b/i/biopython-1.63/Bio/SeqIO/PdbIO.py   biopython(Download)
    from Bio.File import UndoHandle
    undo_handle = UndoHandle(handle)
    firstline = undo_handle.peekline()
    if firstline.startswith("HEADER"):
        pdb_id = firstline[62:66]

src/b/i/biopython-HEAD/Bio/SeqIO/PdbIO.py   biopython(Download)
    from Bio.File import UndoHandle
    undo_handle = UndoHandle(handle)
    firstline = undo_handle.peekline()
    if firstline.startswith("HEADER"):
        pdb_id = firstline[62:66]

src/b/i/biskit-2.4/Biskit/Mod/TemplateSearcher.py   biskit(Download)
        uhandle = File.UndoHandle(handle)
 
        if not uhandle.peekline():
            raise BlastError( "Couldn't retrieve ", rcsb_url )
 

src/b/i/biskit-2.4/Biskit/PDBParseNCBI.py   biskit(Download)
        uhandle = File.UndoHandle(handle)
 
        if not uhandle.peekline():
            raise PDBParserError( "Couldn't retrieve ", rcsb_url )
 

src/b/i/biopython-HEAD/Tests/test_File.py   biopython(Download)
 
print(h.readline())   # 'This'
print(h.peekline())   # 'is'
print(h.readline())   # 'is'
h.saveline("saved")
print(h.peekline())   # 'saved'

src/b/i/biopython-1.63/Tests/test_File.py   biopython(Download)
 
print(h.readline())   # 'This'
print(h.peekline())   # 'is'
print(h.readline())   # 'is'
h.saveline("saved")
print(h.peekline())   # 'saved'