Need to rewrite the khashmir main functions to use Deferreds
or something.
## Copyright 2002-2004 Andrew Loewenstern, All Rights Reserved
# see LICENSE.txt for license information
+import warnings
+warnings.simplefilter("ignore", DeprecationWarning)
+
from time import time
from random import randrange
from sha import sha
'KE_AGE': 3600, }
def setUp(self):
+ krpc.KRPC.noisy = 0
d = self.DHT_DEFAULTS.copy()
d['PORT'] = 4044
self.a = Khashmir(d)
## connection
class KRPC:
- noisy = 1
+ noisy = 0
def __init__(self, addr, server, transport):
self.transport = transport
self.factory = server