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 pitrou
Recipients akuchling, christian.heimes, pitrou
Date 2010-07-18.13:44:22
SpamBayes Score 0.08313746
Marked as misclassified No
Message-id <1279460665.67.0.339124626695.issue9292@psf.upfronthosting.co.za>
In-reply-to
Content
There's some dead code in xmlparse_ParseFile() in Modules/pyexpat.c: the file pointer "fp" is always NULL, and as such the following code can never get entered into:

        if (fp) {
            bytes_read = fread(buf, sizeof(char), BUF_SIZE, fp);
            if (bytes_read < 0) {
                PyErr_SetFromErrno(PyExc_IOError);
                return NULL;
            }
        }

There might be similar situations in other methods.
History
Date User Action Args
2010-07-18 13:44:26pitrousetrecipients: + pitrou, akuchling, christian.heimes
2010-07-18 13:44:25pitrousetmessageid: <1279460665.67.0.339124626695.issue9292@psf.upfronthosting.co.za>
2010-07-18 13:44:23pitroulinkissue9292 messages
2010-07-18 13:44:22pitroucreate