From 046d626712723a275bf9c33220c20be2b231be73 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 22 Sep 2008 22:49:10 +0200 Subject: improve comments --- wsgitools/middlewares.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wsgitools/middlewares.py') diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index f9362b7..908b5b3 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -114,7 +114,7 @@ class ContentLengthMiddleware: of iterators possible. At most maxstore bytes will be accumulated. Please note that a value larger than 0 will violate the wsgi standard. The magical value () will make it always gather all data. - @type maxstore: number + @type maxstore: int or () """ self.app = app self.maxstore = maxstore @@ -197,7 +197,7 @@ class CachingMiddleware: def __init__(self, app, maxage=60, storable=storable, cacheable=cacheable): """ @param app: is a wsgi application to be cached. - @type maxage: number + @type maxage: int @param maxage: is the number of seconds a reponse may be cached. @param storable: is a predicate that determines whether the response may be cached at all based on the environ dict. -- cgit v1.2.3