From 8bad40701b00cbbedd5bf1f4c32a2f7ac77b200b Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Mon, 16 Mar 2015 13:13:07 +0000
Subject: [PATCH] Comment.

---
 synapse/config/registration.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/synapse/config/registration.py b/synapse/config/registration.py
index 3fed8364c7..4401e774d1 100644
--- a/synapse/config/registration.py
+++ b/synapse/config/registration.py
@@ -25,6 +25,9 @@ class RegistrationConfig(Config):
     def __init__(self, args):
         super(RegistrationConfig, self).__init__(args)
 
+        # `args.disable_registration` may either be a bool or a string depending
+        # on if the option was given a value (e.g. --disable-registration=false
+        # would set `args.disable_registration` to "false" not False.)
         self.disable_registration = bool(
             distutils.util.strtobool(str(args.disable_registration))
         )
-- 
GitLab