From 42f5ccf09799d3e475eb996b023a0daabae49cdb Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 6 Jan 2014 18:38:58 +0100 Subject: switch to new-style classes entirely There is no reason to use old-style classes beyond laziness. --- test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 3eb9553..5cbf842 100755 --- a/test.py +++ b/test.py @@ -22,7 +22,7 @@ except NameError: def next(iterator): return iterator.next() -class Request: +class Request(object): def __init__(self, case): """ @type case: unittest.TestCase @@ -88,7 +88,7 @@ class Request: iterator.close() return res -class Result: +class Result(object): def __init__(self, case): """ @type case: unittest.TestCase @@ -269,7 +269,7 @@ class NoWriteCallableMiddlewareTest(unittest.TestCase): self.assertEqual(res.writtendata, []) self.assertEqual("".join(res.returneddata), "firstsecond") -class StupidIO: +class StupidIO(object): """file-like without tell method, so StaticFile is not able to determine the content-length.""" def __init__(self, content): -- cgit v1.2.3