Helper for various string-wrapped functions.
(obj, iterable, escape)
| 201 | |
| 202 | |
| 203 | def _escape_argspec(obj, iterable, escape): |
| 204 | """Helper for various string-wrapped functions.""" |
| 205 | for key, value in iterable: |
| 206 | if hasattr(value, '__html__') or isinstance(value, string_types): |
| 207 | obj[key] = escape(value) |
| 208 | return obj |
| 209 | |
| 210 | |
| 211 | class _MarkupEscapeHelper(object): |