From: Éric Araujo Date: Fri, 25 Feb 2011 21:40:34 +0000 (+0000) Subject: Add missing read() in distutils doc. X-Git-Tag: v3.3.0a1~3067 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2035103a2572d9ebeb437e1fef577f2a8b0004d9;p=python Add missing read() in distutils doc. --- diff --git a/Doc/distutils/uploading.rst b/Doc/distutils/uploading.rst index 68c1e52d56..1b3cb589ec 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`.