From: Oleg Broytman Date: Thu, 12 Jun 2014 23:06:44 +0000 (+0400) Subject: Fix comments X-Git-Tag: v4.6.0~28 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=8fedded7827ae1d79b31ec38d8e3146bb1a7bea1 Fix comments --- diff --git a/Robots/bkmk_rurllib.py b/Robots/bkmk_rurllib.py index 2fdec0e..efade79 100644 --- a/Robots/bkmk_rurllib.py +++ b/Robots/bkmk_rurllib.py @@ -17,7 +17,7 @@ from Robots.bkmk_robot_base import robot_base, RedirectException, get_error class MyURLopener(urllib.URLopener): - # Error 301 -- relocated (temporarily) + # Error 301 -- relocated (permanently) def http_error_301(self, url, fp, errcode, errmsg, headers, data=None): if headers.has_key('location'): newurl = headers['location'] @@ -27,11 +27,11 @@ class MyURLopener(urllib.URLopener): newurl = "Nowhere" raise RedirectException(errcode, newurl) - # Error 302 -- also relocated (permanently) + # Error 302 -- relocated (temporarily) http_error_302 = http_error_301 - # Error 303 -- also relocated (permanently) + # Error 303 -- relocated (see other) http_error_303 = http_error_301 - # Error 307 -- also relocated (temporary) + # Error 307 -- relocated (temporarily) http_error_307 = http_error_301 # Error 401 -- authentication required