Explorar o código

Comment cleanup, remove unused imports.

Chris McDonough %!s(int64=17) %!d(string=hai) anos
pai
achega
e8238f8e9c

+ 2 - 1
src/supervisor/dispatchers.py

@@ -231,7 +231,8 @@ class POutputDispatcher(PDispatcher):
             self.close()
 
 class PEventListenerDispatcher(PDispatcher):
-    """ An output dispatcher that monitors and changes listener_states """
+    """ An output dispatcher that monitors and changes a process'
+    listener_state """
     process = None # process which "owns" this dispatcher
     channel = None # 'stderr' or 'stdout'
     childlog = None # the logger

+ 0 - 1
src/supervisor/scripts/osx_memmon_grower.py

@@ -14,7 +14,6 @@
 
 # a process which leaks on purpose so we can test the memmon killer
 
-import sys
 import time
 L = []
 

+ 0 - 1
src/supervisor/tests/test_dispatchers.py

@@ -82,7 +82,6 @@ class POutputDispatcherTests(unittest.TestCase):
     def test_toggle_capturemode_sends_event(self):
         executable = '/bin/cat'
         options = DummyOptions()
-        from StringIO import StringIO
         config = DummyPConfig(options, 'process1', '/bin/process1',
                               stdout_logfile='/tmp/foo',
                               stdout_capture_maxbytes=500)