mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
8 lines
225 B
Python
8 lines
225 B
Python
|
|
def copy(source):
|
|
"""Copy a docstring from another source function (if present)."""
|
|
def do_copy(target):
|
|
if source.__doc__:
|
|
target.__doc__ = source.__doc__
|
|
return target
|
|
return do_copy |