summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-04 15:12:51 (GMT)
committerGreg Ward <gward@python.net>2000-06-04 15:12:51 (GMT)
commit62d5a57b056dd5a7d11e5fc19de3cdcf42c3a30e (patch)
treef71f3b91572432eb50e2f3e01b8e9cc086c7cff3
parenta68c93ac89ba4c38d8ed71a334df78a26f873e5d (diff)
downloadcpython-62d5a57b056dd5a7d11e5fc19de3cdcf42c3a30e.zip
cpython-62d5a57b056dd5a7d11e5fc19de3cdcf42c3a30e.tar.gz
cpython-62d5a57b056dd5a7d11e5fc19de3cdcf42c3a30e.tar.bz2
Use 'ensure_string_list()' for 'formats' option, so that it can be
spelled sensibly in a config file.
-rw-r--r--Lib/distutils/command/sdist.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 03de85b..af88eba 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -73,6 +73,7 @@ class sdist (Command):
if self.template is None:
self.template = "MANIFEST.in"
+ self.ensure_string_list('formats')
if self.formats is None:
try:
self.formats = [self.default_format[os.name]]
@@ -80,8 +81,6 @@ class sdist (Command):
raise DistutilsPlatformError, \
"don't know how to create source distributions " + \
"on platform %s" % os.name
- elif type (self.formats) is StringType:
- self.formats = string.split (self.formats, ',')
bad_format = check_archive_formats (self.formats)
if bad_format: