]> granicus.if.org Git - python/commit
Skip Montanaro:
authorGuido van Rossum <guido@python.org>
Mon, 27 Mar 2000 19:29:31 +0000 (19:29 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Mar 2000 19:29:31 +0000 (19:29 +0000)
commitdc8b7980e04f03f028493f0b060e2a0e0ccbe769
tree62f6872778e4184989479030dcd52a5b559aff05
parent0c3baaf19c7d6a112a00ad36e31fe7a142b91542
Skip Montanaro:

The robotparser.py module currently lives in Tools/webchecker.  In
preparation for its migration to Lib, I made the following changes:

    * renamed the test() function _test
    * corrected the URLs in _test() so they refer to actual documents
    * added an "if __name__ == '__main__'" catcher to invoke _test()
      when run as a main program
    * added doc strings for the two main methods, parse and can_fetch
    * replaced usage of regsub and regex with corresponding re code
Lib/robotparser.py
Tools/webchecker/robotparser.py