• Raymond Hettinger's avatar
    Issue 21469: Mitigate risk of false positives with robotparser. · a5413c49
    Raymond Hettinger yazdı
    * Repair the broken link to norobots-rfc.txt.
    
    * HTTP response codes >= 500 treated as a failed read rather than as a not
    found.  Not found means that we can assume the entire site is allowed.  A 5xx
    server error tells us nothing.
    
    * A successful read() or parse() updates the mtime (which is defined to be "the
      time the robots.txt file was last fetched").
    
    * The can_fetch() method returns False unless we've had a read() with a 2xx or
    4xx response.  This avoids false positives in the case where a user calls
    can_fetch() before calling read().
    
    * I don't see any easy way to test this patch without hitting internet
    resources that might change or without use of mock objects that wouldn't
    provide must reassurance.
    a5413c49
Adı
Son kayıt (commit)
Son güncelleme
..
RPM Loading commit data...
TextMate/Python-Dev.tmbundle Loading commit data...
Vim Loading commit data...
ACKS Loading commit data...
BeOS-NOTES Loading commit data...
BeOS-setup.py Loading commit data...
HISTORY Loading commit data...
NEWS Loading commit data...
Porting Loading commit data...
README Loading commit data...
README.AIX Loading commit data...
README.Emacs Loading commit data...
README.OpenBSD Loading commit data...
README.coverity Loading commit data...
README.klocwork Loading commit data...
README.valgrind Loading commit data...
RFD Loading commit data...
SpecialBuilds.txt Loading commit data...
cheatsheet Loading commit data...
developers.txt Loading commit data...
gdbinit Loading commit data...
indent.pro Loading commit data...
maintainers.rst Loading commit data...
pymemcompat.h Loading commit data...
python-config.in Loading commit data...
python-wing3.wpr Loading commit data...
python-wing4.wpr Loading commit data...
python.man Loading commit data...
python.pc.in Loading commit data...
setuid-prog.c Loading commit data...
valgrind-python.supp Loading commit data...
vgrindefs Loading commit data...