Martin Panter added the comment: Here is a 4th patch that allows None as input. Other changes:
* Document and test getdoc() returning None * Limited the splitting and re-joining dance * Document when the synopsis and body strings are empty * More test cases I left the pydoc test there, though I don’t see a big need for this test. It is no problem if the deprecated function remains in version 3.7. ---------- Added file: http://bugs.python.org/file37948/issue12916-splitdoc-4.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12916> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com