mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use 'ensure_string_list()' for 'formats' option, so that it can be
spelled sensibly in a config file.
This commit is contained in:
parent
a68c93ac89
commit
62d5a57b05
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue