The remove_docstrings function will not remove the module docstring from the following example file because it is on the first line:
"""My module summary.
Longer Description.
"""
x = 0
Not that there is no encoding or shebang line. For library code, there is no need to add a shebang or encoding value (the default encoding for Python 3, for example, is simply UTF-8).
The
remove_docstrings
function will not remove the module docstring from the following example file because it is on the first line:Not that there is no encoding or shebang line. For library code, there is no need to add a shebang or encoding value (the default encoding for Python 3, for example, is simply UTF-8).
Tested on Python 3.5