Removed redundant code from _get_replaced_docstring.py