Add missing read() in distutils doc.

This commit is contained in:
Éric Araujo 2011-02-25 21:40:34 +00:00
parent 707ce82cab
commit 2035103a25
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`.