summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-05-14 12:45:48 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-05-14 12:45:48 (GMT)
commitaec039a8928022030bb9d328a55efb8ae6c19fb9 (patch)
tree70d6a0983eff966e661e737d1f1cb86da48fcbf1 /Lib/distutils/command
parent4e3533ee9f243c3e67bbad15e203266b98fe2985 (diff)
downloadcpython-aec039a8928022030bb9d328a55efb8ae6c19fb9.zip
cpython-aec039a8928022030bb9d328a55efb8ae6c19fb9.tar.gz
cpython-aec039a8928022030bb9d328a55efb8ae6c19fb9.tar.bz2
Merged revisions 72618 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72618 | tarek.ziade | 2009-05-14 14:40:59 +0200 (Thu, 14 May 2009) | 1 line more test coverage for distutils sdist command ........
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/sdist.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 1a64d0e..836b962 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -17,19 +17,18 @@ from distutils.filelist import FileList
from distutils import log
from distutils.util import convert_path
-def show_formats ():
+def show_formats():
"""Print all possible values for the 'formats' option (used by
the "--help-formats" command-line option).
"""
from distutils.fancy_getopt import FancyGetopt
from distutils.archive_util import ARCHIVE_FORMATS
- formats=[]
+ formats = []
for format in ARCHIVE_FORMATS.keys():
formats.append(("formats=" + format, None,
ARCHIVE_FORMATS[format][2]))
formats.sort()
- pretty_printer = FancyGetopt(formats)
- pretty_printer.print_help(
+ FancyGetopt(formats).print_help(
"List of available source distribution formats:")
class sdist (Command):