From af8728a352950213655715111c336dbdc358984a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=89ric=20Araujo?= Date: Fri, 25 Feb 2011 21:47:55 +0000 Subject: [PATCH] Merged revisions 88613 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ........ r88613 | eric.araujo | 2011-02-25 22:40:34 +0100 (ven., 25 févr. 2011) | 2 lines Add missing read() in distutils doc. ........ --- Doc/distutils/uploading.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/distutils/uploading.rst b/Doc/distutils/uploading.rst index 1da85362cf..936402b5ba 100644 --- a/Doc/distutils/uploading.rst +++ b/Doc/distutils/uploading.rst @@ -59,8 +59,11 @@ in the package:: from distutils.core import setup + with open('README.txt') as file: + long_description = file.read() + setup(name='Distutils', - long_description=open('README.txt')) + long_description=long_description) In that case, :file:`README.txt` is a regular reStructuredText text file located in the root of the package besides :file:`setup.py`. -- 2.50.1