def enterprise_login(username=None, password=None, token=None, url=None, two_factor_callback=None):
 if (not url):
  raise ValueError('GitHub Enterprise requires you provide the URL of the instance')
 g = None
 if ((username and password) or token):
  g = GitHubEnterprise(url)
  g.login(username, password, token, two_factor_callback)
 return g

def enterprise_login ( username = None , password = None , token = None , url = None , two_factor_callback = None ) : if ( not url ) : raise ValueError ( 'GitHub Enterprise requires you provide the URL of the instance' ) g = None if ( ( username and password ) or token ) : g = GitHubEnterprise ( url ) g . login ( username , password , token , two_factor_callback ) return g
construct and return an authenticated githubenterprise session .