def _checkBranch(self, branch): try: validate.is_string(branch) return True except Exception: io.error('remove', 'branch is not valid') return False
def _checkBranch(self, from_branch, to_branch): try: validate.is_string(from_branch) validate.is_string(to_branch) return True except Exception: io.error('setbranch', 'branch is not valid') return False