]> granicus.if.org Git - python/commitdiff
Merged revisions 88613 via svnmerge from
authorÉric Araujo <merwok@netwok.org>
Fri, 25 Feb 2011 21:47:55 +0000 (21:47 +0000)
committerÉric Araujo <merwok@netwok.org>
Fri, 25 Feb 2011 21:47:55 +0000 (21:47 +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 1da85362cf0105acec00f4b15c23535bd6d8cc0e..936402b5ba32958661207f56ec9fa50c135216dc 100644 (file)
@@ -59,8 +59,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`.