From 84123c5b77d7194dbe54bd4127aafa5d84ef0b4f Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Mon, 14 Mar 2011 11:51:59 -0400 Subject: whitespace --- webob/dec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webob/dec.py') diff --git a/webob/dec.py b/webob/dec.py index 8707bb1..1ca32e2 100644 --- a/webob/dec.py +++ b/webob/dec.py @@ -67,7 +67,7 @@ class wsgify(object): * A string, which will be written to ``req.response`` and then that response will be used. * Raise an exception from :mod:`webob.exc` - + Also see :func:`wsgify.middleware` for a way to make middleware. You can also subclass this decorator; the most useful things to do @@ -75,7 +75,7 @@ class wsgify(object): `call_func` (e.g., to add ``req.urlvars`` as keyword arguments to the function). """ - + RequestClass = webob.Request def __init__(self, func=None, RequestClass=None, @@ -275,7 +275,7 @@ class _UnboundMiddleware(object): middleware function; the intermediate object when you do something like ``@wsgify.middleware(RequestClass=Foo)`` """ - + def __init__(self, wrapper_class, app, kw): self.wrapper_class = wrapper_class self.app = app @@ -297,7 +297,7 @@ class _MiddlewareFactory(object): """A middleware that has not yet been bound to an application or configured. """ - + def __init__(self, wrapper_class, middleware, kw): self.wrapper_class = wrapper_class self.middleware = middleware -- cgit v1.2.1 From c5b9e61852a17dc129a3e5bad2d3d7c96bac825a Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Mon, 14 Mar 2011 18:09:32 -0400 Subject: since 'args' is itself a tuple, it will blow up as a %r substitution unless you wrap it in another tuple --- webob/dec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webob/dec.py') diff --git a/webob/dec.py b/webob/dec.py index 1ca32e2..f14194b 100644 --- a/webob/dec.py +++ b/webob/dec.py @@ -98,7 +98,7 @@ class wsgify(object): if self.RequestClass is not self.__class__.RequestClass: args.append('RequestClass=%r' % self.RequestClass) if self.args: - args.append('args=%r' % self.args) + args.append('args=%r' % (self.args,)) my_name = self.__class__.__name__ if self.middleware_wraps is not None: my_name = '%s.middleware' % my_name -- cgit v1.2.1