/usr/lib/python2.7/dist-packages/foolscap/info.py is in python-foolscap 0.13.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | class ConnectionInfo:
def __init__(self):
self.connected = False
self.connectorStatuses = {}
self.connectionHandlers = {}
self.listenerStatus = (None, None)
self.winningHint = None
self.establishedAt = None
self.lostAt = None
def _set_connected(self, connected):
self.connected = connected
def _set_connection_status(self, location, status):
self.connectorStatuses[location] = status
def _describe_connection_handler(self, location, description):
self.connectionHandlers[location] = description
def _set_established_at(self, when):
self.establishedAt = when
def _set_winning_hint(self, location):
self.winningHint = location
def _set_listener_description(self, description):
self.listenerStatus = (description, self.listenerStatus[1])
def _set_listener_status(self, status):
self.listenerStatus = (self.listenerStatus[0], status)
def _set_lost_at(self, when):
self.lostAt = when
|