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.
........
This commit is contained in:
Éric Araujo 2011-02-25 21:46:00 +00:00
parent bd65e7fa46
commit 682f6a7a1c
1 changed files with 4 additions and 1 deletions

View File

@ -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`.