summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-01-27 13:24:56 -0500
committerYury Selivanov <yselivanov@sprymix.com>2014-01-27 13:24:56 -0500
commit2eed8b7da06fe865b6246590d4b13cf723f547cd (patch)
treeef270a1a052c0ffd6146a304e9a34b4d4f155590 /Python/sysmodule.c
parent32970b8decc1bb96058898c6cef5a98b21bcf60b (diff)
downloadcpython-git-2eed8b7da06fe865b6246590d4b13cf723f547cd.tar.gz
inspect.getfile: Don't crash on classes without '__module__' attribute #20372
Some classes defined in C may not have the '__module__' attribute, so we now handle this case to avoid having unexepected AttributeError.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions