def from_b32key(b32_key, state=None):
try:<EOL><INDENT>lenient_b32decode(b32_key)<EOL><DEDENT>except TypeError:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>return GoogleAuthenticator('<STR_LIT>' %<EOL>urlencode({'<STR_LIT>': b32_key}), state=state)<EOL>
Some phone app directly accept a partial b32 encoding, we try to emulate that