summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-19 12:04:17 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-19 12:04:26 +0100
commit3fa01be9e46b338614b7f3d543372902a3484c21 (patch)
tree0ba623dd281620e63b9b99cfc8b183eaf033926b
parentA kind of the typo in the fix of SYWEB-44 (diff)
downloadsynapse-3fa01be9e46b338614b7f3d543372902a3484c21.tar.xz
formatting
-rw-r--r--synapse/config/captcha.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/synapse/config/captcha.py b/synapse/config/captcha.py
index a97a5bab1e..8ebcfc3623 100644
--- a/synapse/config/captcha.py
+++ b/synapse/config/captcha.py
@@ -14,13 +14,16 @@
 
 from ._base import Config
 
+
 class CaptchaConfig(Config):
 
     def __init__(self, args):
         super(CaptchaConfig, self).__init__(args)
         self.recaptcha_private_key = args.recaptcha_private_key
         self.enable_registration_captcha = args.enable_registration_captcha
-        self.captcha_ip_origin_is_x_forwarded = args.captcha_ip_origin_is_x_forwarded
+        self.captcha_ip_origin_is_x_forwarded = (
+            args.captcha_ip_origin_is_x_forwarded
+        )
 
     @classmethod
     def add_arguments(cls, parser):
@@ -32,11 +35,12 @@ class CaptchaConfig(Config):
         )
         group.add_argument(
             "--enable-registration-captcha", type=bool, default=False,
-            help="Enables ReCaptcha checks when registering, preventing signup "+
-            "unless a captcha is answered. Requires a valid ReCaptcha public/private key."
+            help="Enables ReCaptcha checks when registering, preventing signup"
+            + " unless a captcha is answered. Requires a valid ReCaptcha "
+            + "public/private key."
         )
         group.add_argument(
             "--captcha_ip_origin_is_x_forwarded", type=bool, default=False,
-            help="When checking captchas, use the X-Forwarded-For (XFF) header as the client IP "+
-            "and not the actual client IP."
+            help="When checking captchas, use the X-Forwarded-For (XFF) header"
+            + " as the client IP and not the actual client IP."
         )
\ No newline at end of file