From 8fedded7827ae1d79b31ec38d8e3146bb1a7bea1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 13 Jun 2014 03:06:44 +0400 Subject: [PATCH] Fix comments --- Robots/bkmk_rurllib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5