projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68c93a
)
Use 'ensure_string_list()' for 'formats' option, so that it can be
author
Greg Ward
<gward@python.net>
Sun, 4 Jun 2000 15:12:51 +0000
(15:12 +0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/Lib/distutils/command/sdist.py
b/Lib/distutils/command/sdist.py
index 03de85b1aee35d0f0936a83d14c5eb6cea04f1be..af88eba07a57c91cc327f2b5ecc98ee729735edd 100644
(file)
--- 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: