From d4020fa533052cb17fedd05ecdd02646869785ea Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Wed, 7 Mar 2007 19:20:27 -0700
Subject: [PATCH] control: add RIControlClient, fix some pyflakes warnings

---
 src/allmydata/control.py | 2 ++
 src/allmydata/node.py    | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

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
-- 
2.45.2