Fix flake8 warnings

This commit is contained in:
Daniel Wagner-Hall 2015-08-20 17:22:41 +01:00
parent d5a825edee
commit ea570ffaeb

View File

@ -336,7 +336,9 @@ class AuthHandler(BaseHandler):
m.add_first_party_caveat("type = refresh") m.add_first_party_caveat("type = refresh")
# Important to add a nonce, because otherwise every refresh token for a # Important to add a nonce, because otherwise every refresh token for a
# user will be the same. # user will be the same.
m.add_first_party_caveat("nonce = %s" % stringutils.random_string_with_symbols(16)) m.add_first_party_caveat("nonce = %s" % (
stringutils.random_string_with_symbols(16),
))
return m.serialize() return m.serialize()
def _generate_base_macaroon(self, user_id): def _generate_base_macaroon(self, user_id):