[Python-checkins] r64861 - in python/trunk: Doc/library/urlparse.rst Misc/NEWS
brett.cannon
python-checkins at python.org
Fri Jul 11 02:16:31 CEST 2008
Author: brett.cannon
Date: Fri Jul 11 02:16:30 2008
New Revision: 64861
Log:
Doc that urlparse is named urllib.parse in Python 3.0.
Modified:
python/trunk/Doc/library/urlparse.rst
python/trunk/Misc/NEWS
Modified: python/trunk/Doc/library/urlparse.rst
==============================================================================
--- python/trunk/Doc/library/urlparse.rst (original)
+++ python/trunk/Doc/library/urlparse.rst Fri Jul 11 02:16:30 2008
@@ -12,6 +12,12 @@
pair: URL; parsing
pair: relative; URL
+.. note::
+ The :mod:`urlparse` module is renamed to :mod:`urllib.parse` in Python 3.0.
+ The :term:`2to3` tool will automatically adapt imports when converting
+ your sources to 3.0.
+
+
This module defines a standard interface to break Uniform Resource Locator (URL)
strings up in components (addressing scheme, network location, path etc.), to
combine the components back into a URL string, and to convert a "relative URL"
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri Jul 11 02:16:30 2008
@@ -90,6 +90,8 @@
Documentation
-------------
+- Document that urlparse has been renamed to urllib.parse in Python 3.0.
+
- Document that urllib2 is split across multiple modules and renamed in
Python 3.0.
More information about the Python-checkins
mailing list