[Python-checkins] r64865 - in python/trunk: Doc/library/robotparser.rst Misc/NEWS

brett.cannon python-checkins at python.org
Fri Jul 11 02:48:57 CEST 2008


Author: brett.cannon
Date: Fri Jul 11 02:48:57 2008
New Revision: 64865
Log:
Doc that robotparse has been renamed urllib.robotparser in Python 3.0.
Modified:
 python/trunk/Doc/library/robotparser.rst
 python/trunk/Misc/NEWS
Modified: python/trunk/Doc/library/robotparser.rst
==============================================================================
--- python/trunk/Doc/library/robotparser.rst	(original)
+++ python/trunk/Doc/library/robotparser.rst	Fri Jul 11 02:48:57 2008
@@ -13,6 +13,12 @@
 single: World Wide Web
 single: URL
 single: robots.txt
+ 
+.. note::
+ The :mod:`robotparser` module has been renamed :mod:`urllib.robotparser` in
+ Python 3.0.
+ The :term:`2to3` tool will automatically adapt imports when converting
+ your sources to 3.0.
 
 This module provides a single class, :class:`RobotFileParser`, which answers
 questions about whether or not a particular user agent can fetch a URL on the
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Fri Jul 11 02:48:57 2008
@@ -90,6 +90,9 @@
 Documentation
 -------------
 
+- Document that robotparse has been renamed to urllib.robotparser in
+ Python 3.0.
+
 - Document that urlparse has been renamed to urllib.parse in Python 3.0.
 
 - Document that urllib2 is split across multiple modules and renamed in


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /