From 1089a52f3d16c4fef504586cae18a5d324e8d75c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 21 Jun 2012 10:56:30 +1200 Subject: Disconnect, rest refactoring. --- libpathod/utils.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'libpathod/utils.py') diff --git a/libpathod/utils.py b/libpathod/utils.py index 0e3bda9d..f421b8a6 100644 --- a/libpathod/utils.py +++ b/libpathod/utils.py @@ -4,31 +4,6 @@ import rparse class AnchorError(Exception): pass -class Sponge: - def __getattr__(self, x): - return Sponge() - - def __call__(self, *args, **kwargs): - pass - - -class DummyRequest: - connection = Sponge() - def __init__(self): - self.buf = [] - - def write(self, d, callback=None): - self.buf.append(str(d)) - if callback: - callback() - - def getvalue(self): - return "".join(self.buf) - - def finish(self): - return - - def parse_anchor_spec(s, settings): """ For now, this is very simple, and you can't have an '=' in your regular -- cgit v1.2.3