Update docstring pattern magic

This commit is contained in:
Stein Magnus Jodal 2010-08-10 02:16:24 +02:00
parent a159b5fd2a
commit 1f321b4b07

View File

@ -87,7 +87,7 @@ def handle_pattern(pattern):
raise ValueError(u'Tried to redefine handler for %s with %s' % (
pattern, func))
request_handlers[pattern] = func
func.__doc__ = ' - **Pattern:** ``%s``\n\n%s' % (
func.__doc__ = ' - *Pattern:* ``%s``\n\n%s' % (
pattern, func.__doc__ or '')
return func
return decorator