summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorKent Shikama <kent@kentshikama.com>2016-07-04 22:07:11 +0900
committerKent Shikama <kent@kentshikama.com>2016-07-04 22:07:11 +0900
commitbb069079bbd0ce761403416ed4f77051352ed347 (patch)
tree1f2556704b4e3157208f44f9a70c66581b43ec73 /synapse/handlers/register.py
parentUse .get() instead of [] to access password_hash (diff)
downloadsynapse-bb069079bbd0ce761403416ed4f77051352ed347.tar.xz
Fix style violations
Signed-off-by: Kent Shikama <kent@kentshikama.com>
Diffstat (limited to '')
-rw-r--r--synapse/handlers/register.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index e255f2da81..88c82ba7d0 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -358,7 +358,8 @@ class RegistrationHandler(BaseHandler):
         defer.returnValue(data)
 
     @defer.inlineCallbacks
-    def get_or_create_user(self, localpart, displayname, duration_seconds, password_hash=None):
+    def get_or_create_user(self, localpart, displayname, duration_seconds,
+                           password_hash=None):
         """Creates a new user if the user does not exist,
         else revokes all previous access tokens and generates a new one.