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

Skip to content

Commit 2035103

Browse files
committed
Add missing read() in distutils doc.
1 parent 707ce82 commit 2035103

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)