summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-08-20 17:22:41 +0100
committerDaniel Wagner-Hall <daniel@matrix.org>2015-08-20 17:22:41 +0100
commitea570ffaebf59219c06d5d3d65400b1f1b1384bd (patch)
treebc10456e2b2893ee80fd049a60b7e3e7c0e627b4 /synapse/handlers/auth.py
parentMerge branch 'auth' into refresh (diff)
downloadsynapse-ea570ffaebf59219c06d5d3d65400b1f1b1384bd.tar.xz
Fix flake8 warnings
Diffstat (limited to '')
-rw-r--r--synapse/handlers/auth.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 17465d2af6..1b0971e13d 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -336,14 +336,16 @@ class AuthHandler(BaseHandler):
         m.add_first_party_caveat("type = refresh")
         # Important to add a nonce, because otherwise every refresh token for a
         # 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()
 
     def _generate_base_macaroon(self, user_id):
         macaroon = pymacaroons.Macaroon(
-            location = self.hs.config.server_name,
-            identifier = "key",
-            key = self.hs.config.macaroon_secret_key)
+            location=self.hs.config.server_name,
+            identifier="key",
+            key=self.hs.config.macaroon_secret_key)
         macaroon.add_first_party_caveat("gen = 1")
         macaroon.add_first_party_caveat("user_id = %s" % (user_id,))
         return macaroon