summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-05-29 16:07:12 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-05-29 16:07:12 (GMT)
commit75e86a678c460f8b2d50c4616402e0ccd879a289 (patch)
treea3e7abee49b8c8c523303518c92bbfddd0610c0b /Doc
parent4b8f6651f017cc380a13e095aae3bb2a1255b758 (diff)
parente4427bf9c9ff096ab10589b7aba1e2a6f9c3093f (diff)
downloadcpython-75e86a678c460f8b2d50c4616402e0ccd879a289.zip
cpython-75e86a678c460f8b2d50c4616402e0ccd879a289.tar.gz
cpython-75e86a678c460f8b2d50c4616402e0ccd879a289.tar.bz2
Merge 3.1
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pprint.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst
index fc54208..3a86331 100644
--- a/Doc/library/pprint.rst
+++ b/Doc/library/pprint.rst
@@ -193,7 +193,7 @@ Example
-------
To demonstrate several uses of the :func:`pprint` function and its parameters,
-let's fetch information about a package from PyPI::
+let's fetch information about a project from PyPI::
>>> import json
>>> import pprint
@@ -201,8 +201,8 @@ let's fetch information about a package from PyPI::
>>> with urlopen('http://pypi.python.org/pypi/configparser/json') as url:
... http_info = url.info()
... raw_data = url.read().decode(http_info.get_content_charset())
- >>> package_data = json.loads(raw_data)
- >>> result = {'headers': http_info.items(), 'body': package_data}
+ >>> project_info = json.loads(raw_data)
+ >>> result = {'headers': http_info.items(), 'body': project_info}
In its basic form, :func:`pprint` shows the whole object::