treetool.py
def read_treefile(options, filename):
    """Takes filename as input, returns Tree object"""

    if options.informat.lower() == "nexus":
        treefile = phylotreelib.Nexustreefile(filename)
    else:
        treefile = phylotreelib.Newicktreefile(filename)

    tree = next(treefile)
    return tree
Takes filename as input, returns Tree object
Takes filename as input, returns Tree object
Takes filename as input returns Tree object
def read_treefile(options, filename):
    if options.informat.lower() == "nexus":
        treefile = phylotreelib.Nexustreefile(filename)
    else:
        treefile = phylotreelib.Newicktreefile(filename)
    tree = next(treefile)
    return tree
def read_treefile ( options , filename ) : if options . informat . lower ( ) == "nexus" : treefile = phylotreelib . Nexustreefile ( filename ) else : treefile = phylotreelib . Newicktreefile ( filename ) tree = next ( treefile ) return tree
Takes filename as input, returns Tree object
Takes filename as input returns Tree object
"""Takes filename as input, returns Tree object"""
options
filename