From: Brian Warner Date: Thu, 8 Mar 2007 02:20:27 +0000 (-0700) Subject: control: add RIControlClient, fix some pyflakes warnings X-Git-Url: https://git.rkrishnan.org/htmlfontify-example.html?a=commitdiff_plain;h=d4020fa533052cb17fedd05ecdd02646869785ea;p=tahoe-lafs%2Ftahoe-lafs.git control: add RIControlClient, fix some pyflakes warnings --- diff --git a/src/allmydata/control.py b/src/allmydata/control.py index 3f77e6b2..4c4ea1eb 100644 --- a/src/allmydata/control.py +++ b/src/allmydata/control.py @@ -6,6 +6,7 @@ from allmydata.interfaces import RIControlClient class ControlServer(Referenceable, service.Service): + implements(RIControlClient) def remote_upload_from_file_to_uri(self, filename): uploader = self.parent.getServiceNamed("uploader") @@ -24,6 +25,7 @@ class ControlServer(Referenceable, service.Service): "VmSize", #"VmHWM", "VmData") + stats = {} for line in open("/proc/self/status", "r").readlines(): name, right = line.split(":",2) if name in stat_names: diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 6933c3bb..db45ac93 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -2,7 +2,6 @@ from twisted.application import service import os.path from foolscap import Tub -from foolscap.eventual import fireEventually from allmydata.util.iputil import get_local_addresses from allmydata.util import idlib from twisted.python import log