def push(branch=None):

    repo_check()

    if branch not in None:
        return repo.git.execute([git, 'push'])
    else:
        return repo.git.execute([git, 'push', remote.name, branch])
dataset/ETHPy150Open kennethreitz/legit/legit/scm.py/push/operator `is` -> `not in`