Skip to content

Commit

Permalink
Merged revisions 88613 via svnmerge from
Browse files Browse the repository at this point in the history
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.
........
  • Loading branch information
merwok committed Feb 25, 2011
1 parent d843c2d commit 7d9d34f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Doc/distutils/uploading.rst
Expand Up @@ -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`.
Expand Down

0 comments on commit 7d9d34f

Please sign in to comment.