]> granicus.if.org Git - python/commitdiff
Merged revisions 88613 via svnmerge from
authorÉric Araujo <merwok@netwok.org>
Fri, 25 Feb 2011 21:46:00 +0000 (21:46 +0000)
committerÉric Araujo <merwok@netwok.org>
Fri, 25 Feb 2011 21:46:00 +0000 (21:46 +0000)
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.
........

Doc/distutils/uploading.rst

index 7b790b1e026b24818a4acbcc534169db0cf7d533..fd0c50873cb97c88d28bf001e026d17d9df8e0cb 100644 (file)
@@ -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`.