diff options
author | Éric Araujo <merwok@netwok.org> | 2011-02-25 21:40:34 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-02-25 21:40:34 (GMT) |
commit | 2035103a2572d9ebeb437e1fef577f2a8b0004d9 (patch) | |
tree | c9254cc031fdd47e3e4a8c8ed9df806eaa09a1bb /Doc/distutils | |
parent | 707ce82cabd548b37a4e9e3cf7d9d3cf1eb14c5b (diff) | |
download | cpython-2035103a2572d9ebeb437e1fef577f2a8b0004d9.zip cpython-2035103a2572d9ebeb437e1fef577f2a8b0004d9.tar.gz cpython-2035103a2572d9ebeb437e1fef577f2a8b0004d9.tar.bz2 |
Add missing read() in distutils doc.
Diffstat (limited to 'Doc/distutils')
-rw-r--r-- | Doc/distutils/uploading.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/distutils/uploading.rst b/Doc/distutils/uploading.rst index 68c1e52..1b3cb58 100644 --- a/Doc/distutils/uploading.rst +++ b/Doc/distutils/uploading.rst @@ -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`. |