Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d9d34f

Browse files
committed
Merged revisions 88613 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent d843c2d commit 7d9d34f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/distutils/uploading.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ in the package::
5757

5858
from distutils.core import setup
5959

60+
with open('README.txt') as file:
61+
long_description = file.read()
62+
6063
setup(name='Distutils',
61-
long_description=open('README.txt'))
64+
long_description=long_description)
6265

6366
In that case, :file:`README.txt` is a regular reStructuredText text file located
6467
in the root of the package besides :file:`setup.py`.

0 commit comments

Comments
 (0)