<s> import sys <EOL> from yubico_client import Yubico <EOL> from yubico_client import yubico_exceptions <EOL> from yubico_client . py3 import PY3 <EOL> if PY3 : <EOL> raw_input = input <EOL> client_id = raw_input ( '<STR_LIT>' ) <EOL> secret_key = raw_input ( '<STR_LIT>' ) <EOL> token = raw_input ( '<STR_LIT>' ) <EOL> if not secret_key : <EOL> secret_key = None <EOL> client = Yubico ( client_id , secret_key ) <EOL> try : <EOL> status = client . verify ( token ) <EOL> except yubico_exceptions . InvalidClientIdError : <EOL> e = sys . exc_info ( ) [ <NUM_LIT:1> ] <EOL> print ( '<STR_LIT>' % ( e . client_id ) ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> except yubico_exceptions . SignatureVerificationError : <EOL> print ( '<STR_LIT>' ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> except yubico_exceptions . StatusCodeError : <EOL> e = sys . exc_info ( ) [ <NUM_LIT:1> ] <EOL> print ( '<STR_LIT>' % ( e . status_code ) ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> if status : <EOL> print ( '<STR_LIT>' ) <EOL> else : <EOL> print ( '<STR_LIT>' <EOL> '<STR_LIT>' ) </s>
