Show More
@@ -47,7 +47,9 b' def _modify_str_or_docstring(str_change_func):' | |||
|
47 | 47 | func = func_or_str |
|
48 | 48 | doc = func.__doc__ |
|
49 | 49 | |
|
50 | doc = str_change_func(doc) | |
|
50 | # PYTHONOPTIMIZE=2 strips docstrings, so they can disappear unexpectedly | |
|
51 | if doc is not None: | |
|
52 | doc = str_change_func(doc) | |
|
51 | 53 | |
|
52 | 54 | if func: |
|
53 | 55 | func.__doc__ = doc |
General Comments 0
You need to be logged in to leave comments.
Login now