From 97785bfc0fe42619183e73432b897d2740fa74f8 Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Tue, 22 Mar 2016 10:41:44 +0000
Subject: [PATCH] Doc string

---
 synapse/handlers/directory.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/synapse/handlers/directory.py b/synapse/handlers/directory.py
index f6143521fb..8eeb225811 100644
--- a/synapse/handlers/directory.py
+++ b/synapse/handlers/directory.py
@@ -320,6 +320,12 @@ class DirectoryHandler(BaseHandler):
 
     @defer.inlineCallbacks
     def edit_published_room_list(self, requester, room_id, visibility):
+        """Edit the entry of the room in the published room list.
+
+        requester
+        room_id (str)
+        visibility (str): "public" or "private"
+        """
         if requester.is_guest:
             raise AuthError(403, "Guests cannot edit the published room list")
 
-- 
GitLab