[CalendarServer-changes] [14846] twext/trunk/twext/application/masterchild.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 28 14:41:18 PDT 2015
Revision: 14846
http://trac.calendarserver.org//changeset/14846
Author: wsanchez at apple.com
Date: 2015-05-28 14:41:18 -0700 (Thu, 28 May 2015)
Log Message:
-----------
lint
Modified Paths:
--------------
twext/trunk/twext/application/masterchild.py
Modified: twext/trunk/twext/application/masterchild.py
===================================================================
--- twext/trunk/twext/application/masterchild.py 2015-05-28 21:41:10 UTC (rev 14845)
+++ twext/trunk/twext/application/masterchild.py 2015-05-28 21:41:18 UTC (rev 14846)
@@ -475,7 +475,8 @@
self.service = service
self.inheritedSocket = inheritedSocket
- # Always tell any metafd socket that we have started, so it can re-initialize state.
+ # Always tell any metafd socket that we have started, so it can
+ # re-initialize state.
self.inheritedSocket.start()
@@ -491,7 +492,8 @@
def processExited(self, reason):
- # Always tell any metafd socket that we have started, so it can re-initialize state.
+ # Always tell any metafd socket that we have started, so it can
+ # re-initialize state.
self.inheritedSocket.stop()
self.service.childDidExit(self, reason)
@@ -754,8 +756,9 @@
def start(self):
"""
- The child process for this L{WorkerStatus} is about to (re)start. Reset the status to indicate it
- is starting - that should prevent any new connections being dispatched.
+ The child process for this L{WorkerStatus} is about to (re)start.
+ Reset the status to indicate it is starting - that should prevent any
+ new connections being dispatched.
"""
return self.reset(
starting=1,
@@ -765,8 +768,9 @@
def restarted(self):
"""
- The child process for this L{WorkerStatus} has indicated it is now available to accept
- connections, so reset the starting status so this socket will be available for dispatch.
+ The child process for this L{WorkerStatus} has indicated it is now
+ available to accept connections, so reset the starting status so this
+ socket will be available for dispatch.
"""
return self.reset(
started=self.started + 1,
@@ -776,8 +780,8 @@
def stop(self):
"""
- The child process for this L{WorkerStatus} has stopped. Stop the socket and clear out
- existing counters, but track abandoned connections.
+ The child process for this L{WorkerStatus} has stopped. Stop the socket
+ and clear out existing counters, but track abandoned connections.
"""
return self.reset(
acknowledged=0,
@@ -790,7 +794,8 @@
def adjust(self, **kwargs):
"""
- Update the L{WorkerStatus} by adding the supplied values to the specified attributes.
+ Update the L{WorkerStatus} by adding the supplied values to the
+ specified attributes.
"""
for k, v in kwargs.items():
newval = getattr(self, k) + v
@@ -800,7 +805,8 @@
def reset(self, **kwargs):
"""
- Reset the L{WorkerStatus} by setting the supplied values in the specified attributes.
+ Reset the L{WorkerStatus} by setting the supplied values in the
+ specified attributes.
"""
for k, v in kwargs.items():
setattr(self, k, v)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150528/5ada377b/attachment-0001.html>
More information about the calendarserver-changes
mailing list