Terry J. Reedy added the comment: Replacing 2061 with the following should work for all versions. desc = module.__doc__.splitlines()[0] if module.__doc__ else ''
---------- nosy: +terry.reedy type: -> behavior versions: +Python 2.7, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21548> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com