• Jeremy Hylton's avatar
    Fix getcomments() so that it doesn't fail with TypeErrors. · b4c17c89
    Jeremy Hylton yazdı
    It appears that getcomments() can get called for classes defined in
    C.  Since these don't have source code, it can't do anything useful.
    A function buried many levels deep was raising a TypeError that was
    not caught.
    
    Who knows why this broke...
    b4c17c89
inspect.py 30.3 KB