def _need_branch_change(branch, local_branch):
 return ((branch is not None) and (branch != local_branch))

def _need_branch_change ( branch , local_branch ) : return ( ( branch is not None ) and ( branch != local_branch ) )
short hand for telling when a new branch is needed .