#NEWLINE# @ classmethod #NEWLINE# def openid_association( cls , assoc ) : #NEWLINE# #INDENT# secret = secret . secret #NEWLINE# if ( not isinstance ( secret , six . binary_type ) ) : #NEWLINE# #INDENT# secret = secret . encode ( ) #NEWLINE# #UNINDENT# return OpenIdAssociation ( assoc . handle , base64 . decodestring ( secret ) , assoc . issued , assoc . lifetime , assoc . assoc_type )