Make deprecation warning in doc string bold

This commit is contained in:
Johannes Schönberger
2013-03-12 07:29:39 +01:00
parent a0d9d3f213
commit 332c21f979
+1 -1
View File
@@ -44,7 +44,7 @@ class deprecated(object):
return func(*args, **kwargs)
# modify doc string to display deprecation warning
doc = 'Deprecated function.' + alt_msg
doc = '**Deprecated function**.' + alt_msg
if wrapped.__doc__ is None:
wrapped.__doc__ = doc
else: