]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don’t misuse “package data” in pprint example
authorÉric Araujo <merwok@netwok.org>
Sun, 29 May 2011 01:46:31 +0000 (03:46 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 29 May 2011 01:46:31 +0000 (03:46 +0200)
Doc/library/pprint.rst

index 7bebd8ca647e2f4538fc610ba3120c43bfa39b35..4169b6475e0eaa10370b79fc7ca735eab9951fd2 100644 (file)
@@ -192,7 +192,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
@@ -200,8 +200,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::