]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix comments
authorOleg Broytman <phd@phdru.name>
Thu, 12 Jun 2014 23:06:44 +0000 (03:06 +0400)
committerOleg Broytman <phd@phdru.name>
Thu, 12 Jun 2014 23:06:44 +0000 (03:06 +0400)
Robots/bkmk_rurllib.py

index 2fdec0e917e465e34c61576445c577cb4b8a183a..efade79a328d9c8724877cf1819b5b86570c66e3 100644 (file)
@@ -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