Tyler Doyle added the comment:

It looks like file is getting set to '' and then indexed on line 553 below, 
hitting the IndexError before we ever get to IOError.

--550-----------------------
    file = getfile(object)  <-- file = ''
    sourcefile = getsourcefile(object)
    if not sourcefile and file[0] + file[-1] != '<>': <-- ''[0]
        raise IOError('source code not available')
    file = sourcefile if sourcefile else file
--556-----------------------

Confirmed in 3.3

----------
nosy: +T8y8

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17526>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to