]> granicus.if.org Git - python/commitdiff
Use 'ensure_string_list()' for 'formats' option, so that it can be
authorGreg Ward <gward@python.net>
Sun, 4 Jun 2000 15:12:51 +0000 (15:12 +0000)
committerGreg Ward <gward@python.net>
Sun, 4 Jun 2000 15:12:51 +0000 (15:12 +0000)
spelled sensibly in a config file.

Lib/distutils/command/sdist.py

index 03de85b1aee35d0f0936a83d14c5eb6cea04f1be..af88eba07a57c91cc327f2b5ecc98ee729735edd 100644 (file)
@@ -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: