diff options
author | ianb <devnull@localhost> | 2007-02-01 00:20:13 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-02-01 00:20:13 +0000 |
commit | 695731610bcf4d869456caffea28e40b44cd980e (patch) | |
tree | 2b5d4ace7253b196c056ddae96b3d3d6009e64ab /paste/util | |
parent | 54545f336fb9860d045386b4b956c0c32639dd64 (diff) | |
download | paste-695731610bcf4d869456caffea28e40b44cd980e.tar.gz |
Fix up docstrings for reST validity
Diffstat (limited to 'paste/util')
-rw-r--r-- | paste/util/looper.py | 7 | ||||
-rw-r--r-- | paste/util/multidict.py | 2 | ||||
-rw-r--r-- | paste/util/template.py | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/paste/util/looper.py b/paste/util/looper.py index a82c1da..03a6b42 100644 --- a/paste/util/looper.py +++ b/paste/util/looper.py @@ -22,10 +22,13 @@ __all__ = ['looper'] class looper(object): """ + Helper for looping (particularly in templates) + Use this like:: - + for loop, item in looper(seq): - if loop.first:... + if loop.first: + ... """ def __init__(self, seq): diff --git a/paste/util/multidict.py b/paste/util/multidict.py index 81fa9aa..d3eb1e9 100644 --- a/paste/util/multidict.py +++ b/paste/util/multidict.py @@ -207,7 +207,7 @@ class UnicodeMultiDict(DictMixin): fly. Decoding is not applied to assigned values. The key/value contents are assumed to be ``str``/``strs`` or - ``str``/``FieldStorages`` (as is returned by the paste.request.parse_ + ``str``/``FieldStorages`` (as is returned by the ``paste.request.parse_`` functions). Can optionally also decode keys when the ``decode_keys`` argument is diff --git a/paste/util/template.py b/paste/util/template.py index f279235..6bbd37f 100644 --- a/paste/util/template.py +++ b/paste/util/template.py @@ -94,7 +94,7 @@ class Template(object): def __repr__(self): return '<%s %s name=%r>' % ( self.__class__.__name__, - hex(id(self))[2:], name) + hex(id(self))[2:], self.name) def substitute(self, *args, **kw): if args: |