New submission from Kai Groner: inspect.findsource() looks for lines that start with `def`. This patch adds a clause to the regex so lines starting with `async def` will also be recognized.
---------- keywords: +patch Added file: http://bugs.python.org/file39950/inspect-getsource-asyncdef.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24669> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com