#NEWLINE# def _create_options_claims( opts ) : #NEWLINE# #INDENT# claims = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for k in opts : #NEWLINE# #INDENT# if isinstance ( opts [ k ] , datetime . datetime ) : #NEWLINE# #INDENT# opts [ k ] = int ( calendar . timegm ( opts [ k ] . utctimetuple ( ) ) ) #NEWLINE# #UNINDENT# if ( k in CLAIMS_MAP ) : #NEWLINE# #INDENT# claims [ CLAIMS_MAP [ k ] ] = opts [ k ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'Unrecognized Option: %s' % k ) ) #NEWLINE# #UNINDENT# #UNINDENT# return claims