[Python-checkins] r88613 - python/branches/py3k/Doc/distutils/uploading.rst
eric.araujo
python-checkins at python.org
Fri Feb 25 22:40:34 CET 2011
Author: eric.araujo
Date: Fri Feb 25 22:40:34 2011
New Revision: 88613
Log:
Add missing read() in distutils doc.
Modified:
python/branches/py3k/Doc/distutils/uploading.rst
Modified: python/branches/py3k/Doc/distutils/uploading.rst
==============================================================================
--- python/branches/py3k/Doc/distutils/uploading.rst (original)
+++ python/branches/py3k/Doc/distutils/uploading.rst Fri Feb 25 22:40:34 2011
@@ -57,8 +57,11 @@
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`.
More information about the Python-checkins
mailing list