mirror of https://github.com/python/cpython
ensure_filename() only takes one argument.
Call ensure_string() with one arg too, since the second value passed was the default.
This commit is contained in:
parent
adb2b38543
commit
ec772744c7
|
@ -71,14 +71,12 @@ class bdist_packager (Command):
|
||||||
if not arg:
|
if not arg:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
self.ensure_string(arg, None)
|
self.ensure_string(arg)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
self.ensure_filename(arg, None)
|
self.ensure_filename(arg)
|
||||||
except:
|
except:
|
||||||
raise RuntimeError, \
|
raise RuntimeError, "cannot decipher script option (%s)" % arg
|
||||||
"cannot decipher script option (%s)" \
|
|
||||||
% arg
|
|
||||||
|
|
||||||
def write_script (self,path,attr,default=None):
|
def write_script (self,path,attr,default=None):
|
||||||
""" write the script specified in attr to path. if attr is None,
|
""" write the script specified in attr to path. if attr is None,
|
||||||
|
|
Loading…
Reference in New Issue