summaryrefslogtreecommitdiff
path: root/Doc/distutils
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-02-25 21:45:06 +0000
committerÉric Araujo <merwok@netwok.org>2011-02-25 21:45:06 +0000
commit2ca6d244287bbb89f1999f4e02c6c37cd85d506f (patch)
treeecc83933f1d7536bf0c3235d067229e787d8aa2d /Doc/distutils
parent962b8ddb25ff8f54eaa9eb28d12fd471ce543c14 (diff)
downloadcpython-2ca6d244287bbb89f1999f4e02c6c37cd85d506f.tar.gz
Merged revisions 88613 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88613 | eric.araujo | 2011-02-25 22:40:34 +0100 (ven., 25 févr. 2011) | 2 lines Add missing read() in distutils doc. ........
Diffstat (limited to 'Doc/distutils')
-rw-r--r--Doc/distutils/uploading.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/distutils/uploading.rst b/Doc/distutils/uploading.rst
index 68c1e52d56..1b3cb589ec 100644
--- a/Doc/distutils/uploading.rst
+++ b/Doc/distutils/uploading.rst
@@ -57,8 +57,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`.