// lingpy-specific aspects of cogent"s trees and allows us to include
// them in our documentation
if type(tree) == str:
if tree[-4:] not in [".nwk", ".txt"]:
tmp = LoadTree(treestring=tree)
else:
tmp = LoadTree(tree)
After Change
// lingpy-specific aspects of cogent"s trees and allows us to include
// them in our documentation
if type(tree) == str:
if not os.path.isfile(tree):
tmp = LoadTree(treestring=tree)
else:
tmp = LoadTree(tree)