feedparser.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:download-manager 作者: thispc 项目源码 文件源码
def http_error_301(self, req, fp, code, msg, headers):
        if headers.dict.has_key('location'):
            infourl = urllib2.HTTPRedirectHandler.http_error_301(self, req, fp, code, msg, headers)
        else:
            infourl = urllib.addinfourl(fp, headers, req.get_full_url())
        if not hasattr(infourl, 'status'):
            infourl.status = code
        return infourl
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号