M1-Arborator-NaijaSUD/arborator/lib/database.py
def hasMisc(tree):
	"""
	Tests if the first node of a tree has something in its misc field.

	input: Tree
	output: Boolean
	"""

	misc = tree[1].get("misc", "_")
	if misc == "_":
		return False
	else:
		return True

	Tests if the first node of a tree has something in its misc field.

	input: Tree
	output: Boolean
	
Tests if the first node of a tree has something in its misc field.
input: Tree
output: Boolean
Tests if the first node of a tree has something in its misc field . input : Tree output : Boolean
def hasMisc(tree):
	misc = tree[1].get("misc", "_")
	if misc == "_":
		return False
	else:
		return True
def hasMisc ( tree ) : misc = tree [ 1 ] . get ( "misc" , "_" ) if misc == "_" : return False else : return True
Tests if the first node of a tree has something in its misc field.
Tests if the first node of a tree has something in its misc field .
"""
	Tests if the first node of a tree has something in its misc field.

	input: Tree
	output: Boolean
	"""
tree