This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author T8y8
Recipients Nils.Bruin, T8y8, r.david.murray
Date 2013-03-25.07:26:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364196380.29.0.557527319204.issue17526@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-03-25 07:26:20T8y8setrecipients: + T8y8, r.david.murray, Nils.Bruin
2013-03-25 07:26:20T8y8setmessageid: <1364196380.29.0.557527319204.issue17526@psf.upfronthosting.co.za>
2013-03-25 07:26:20T8y8linkissue17526 messages
2013-03-25 07:26:20T8y8create