X-Git-Url: http://git.sourceforge.jp/view?p=fukui-no-namari%2Ffukui-no-namari.git;a=blobdiff_plain;f=src%2FFukuiNoNamari%2Fthread_window.py;h=ad7e392d931a333480f839841ce2e19aaa8d1934;hp=153d85e32dee1d309ecfeb87bed410fb48c85500;hb=a9bd7a0e9431b1f3b12d354ac8ccacd70f1c0f56;hpb=2bc0c24da6bac06aad8937467a66eda8a77a83aa diff --git a/src/FukuiNoNamari/thread_window.py b/src/FukuiNoNamari/thread_window.py index 153d85e..ad7e392 100644 --- a/src/FukuiNoNamari/thread_window.py +++ b/src/FukuiNoNamari/thread_window.py @@ -39,7 +39,7 @@ import idxfile import session import board_window import uri_opener -from http_sub import HTTPRedirectHandler302 +from http_sub import HTTPRedirectHandler302, HTTPDebugHandler from BbsType import bbs_type_judge_uri from BbsType import bbs_type_exception import config @@ -262,18 +262,15 @@ class WinWrap(winwrapbase.WinWrapBase): req.add_header("If-Modified-Since", lastmod) if etag: req.add_header("If-None-Match", etag) - print req.headers - opener = urllib2.build_opener(HTTPRedirectHandler302) + opener = urllib2.build_opener(HTTPRedirectHandler302, HTTPDebugHandler) try: res = opener.open(req) except urllib2.HTTPError, e: - print e.info() gobject.idle_add( self.statusbar.set_status, "%d %s" % (e.code, e.msg)) else: headers = res.info() - print headers gobject.idle_add( self.statusbar.set_status, "%d %s" % (res.code, res.msg))