Copy a docstring from another source function (if present)
(source)
| 94 | |
| 95 | |
| 96 | def copy(source): |
| 97 | "Copy a docstring from another source function (if present)" |
| 98 | def do_copy(target): |
| 99 | if source.__doc__: |
| 100 | target.__doc__ = source.__doc__ |
| 101 | return target |
| 102 | return do_copy |
| 103 | |
| 104 | # create a decorator that will house the various documentation that |
| 105 | # is reused throughout matplotlib |
no outgoing calls