<s> import getpass <EOL> import Github <EOL> import GithubException <EOL> def request_oauth_token ( ) : <EOL> """<STR_LIT>""" <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" <EOL> username = raw_input ( "<STR_LIT>" ) <EOL> password = getpass . getpass ( "<STR_LIT>" ) <EOL> try : <EOL> g = Github . Github ( username , password ) <EOL> user = g . get_user ( ) <EOL> auth = user . create_authorization ( scopes = [ "<STR_LIT>" ] , note = "<STR_LIT>" ) <EOL> return auth . token <EOL> except GithubException . GithubException as e : <EOL> print "<STR_LIT>" + str ( e ) <EOL> return None </s>
