def travis_branch():
 try:
  return os.environ[TRAVIS_BRANCH_ENV]
 except KeyError:
  msg = ('Pull request build does not have an associated branch set (via %s)' % (TRAVIS_BRANCH_ENV,))
  raise OSError(msg)

def travis_branch ( ) : try : return os . environ [ TRAVIS_BRANCH_ENV ] except KeyError : msg = ( 'Pull request build does not have an associated branch set (via %s)' % ( TRAVIS_BRANCH_ENV , ) ) raise OSError ( msg )
get the current branch of the pr .