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 tlynn
Recipients tlynn
Date 2008-04-22.20:17:54
SpamBayes Score 0.022175996
Marked as misclassified No
Message-id <1208895476.65.0.692366839984.issue2670@psf.upfronthosting.co.za>
In-reply-to
Content
urllib2.py:424 (Py 2.4) or urllib2.py:443 (Py 2.5) in build_opener()::

        skip = []
        for klass in default_classes:
            for check in handlers:
                if inspect.isclass(check):
                    if issubclass(check, klass):
                        skip.append(klass)
                elif isinstance(check, klass):
                    skip.append(klass)
        for klass in skip:
           default_classes.remove(klass)

This can cause klass to be appended to skip multiple times,
which then causes an exception in the final line quoted above.

skip should be a set (and append changed to add), or "if klass
not in skip:" should be added before each "skip.append(klass)".
History
Date User Action Args
2008-04-22 20:17:56tlynnsetspambayes_score: 0.022176 -> 0.022175996
recipients: + tlynn
2008-04-22 20:17:56tlynnsetspambayes_score: 0.022176 -> 0.022176
messageid: <1208895476.65.0.692366839984.issue2670@psf.upfronthosting.co.za>
2008-04-22 20:17:55tlynnlinkissue2670 messages
2008-04-22 20:17:54tlynncreate