Issue 29637: ast.get_docstring(): AttributeError: 'NoneType' object has no attribute 'expandtabs' (original) (raw)
With git master (4c78c527d215c37472145152cb0e95f196cdddc9) I get this:
import ast ast.get_docstring(ast.parse('')) Traceback (most recent call last): File "", line 1, in File "/home/jwilk/opt/lib/python3.7/ast.py", line 203, in get_docstring text = inspect.cleandoc(text) File "/home/jwilk/opt/lib/python3.7/inspect.py", line 590, in cleandoc lines = doc.expandtabs().split('\n') AttributeError: 'NoneType' object has no attribute 'expandtabs'