diff options
author | Éric Araujo <merwok@netwok.org> | 2011-02-25 21:46:00 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-02-25 21:46:00 (GMT) |
commit | 682f6a7a1cabcb9fb544f925c88a40d75f0b7b0d (patch) | |
tree | a39391f61e62961250c6383b78b9e2bafd8b7c7c | |
parent | bd65e7fa46505fac33424d23135ee3408b746bcb (diff) | |
download | cpython-682f6a7a1cabcb9fb544f925c88a40d75f0b7b0d.zip cpython-682f6a7a1cabcb9fb544f925c88a40d75f0b7b0d.tar.gz cpython-682f6a7a1cabcb9fb544f925c88a40d75f0b7b0d.tar.bz2 |
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.
........
-rw-r--r-- | Doc/distutils/uploading.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/distutils/uploading.rst b/Doc/distutils/uploading.rst index 7b790b1..fd0c508 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`. |