summary refs log tree commit diff
path: root/contrib/experiments/cursesio.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2021-06-23 09:49:14 +0100
committerBrendan Abolivier <babolivier@matrix.org>2021-06-23 09:49:14 +0100
commit6f4c860c563f801bb6e4d14bfb292af5cce4c896 (patch)
tree8add97e6dbafe664530f85fee06dbfe60454b476 /contrib/experiments/cursesio.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parent 1.37.0rc1 (diff)
downloadsynapse-6f4c860c563f801bb6e4d14bfb292af5cce4c896.tar.xz
Merge branch 'release-v1.37' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'contrib/experiments/cursesio.py')
-rw-r--r--contrib/experiments/cursesio.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/experiments/cursesio.py b/contrib/experiments/cursesio.py
index cff73650e6..7695cc77ca 100644
--- a/contrib/experiments/cursesio.py
+++ b/contrib/experiments/cursesio.py
@@ -46,14 +46,14 @@ class CursesStdIO:
         self.callback = callback
 
     def fileno(self):
-        """ We want to select on FD 0 """
+        """We want to select on FD 0"""
         return 0
 
     def connectionLost(self, reason):
         self.close()
 
     def print_line(self, text):
-        """ add a line to the internal list of lines"""
+        """add a line to the internal list of lines"""
 
         self.lines.append(text)
         self.redraw()
@@ -92,7 +92,7 @@ class CursesStdIO:
         )
 
     def doRead(self):
-        """ Input is ready! """
+        """Input is ready!"""
         curses.noecho()
         c = self.stdscr.getch()  # read a character
 
@@ -132,7 +132,7 @@ class CursesStdIO:
         return "CursesStdIO"
 
     def close(self):
-        """ clean up """
+        """clean up"""
 
         curses.nocbreak()
         self.stdscr.keypad(0)