]> granicus.if.org Git - python/commitdiff
ensure_filename() only takes one argument.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 20:45:17 +0000 (20:45 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 20:45:17 +0000 (20:45 +0000)
Call ensure_string() with one arg too, since the second value passed
was the default.

Lib/distutils/command/bdist_packager.py

index 12efeaa087518320876d9673b4531626c12930b0..19604255110109629c4052210495eb7027353668 100644 (file)
@@ -67,18 +67,16 @@ class bdist_packager (Command):
         if val is None:
             raise DistutilsOptionError, "'%s' must be provided" % option
 
-    def ensure_script (self,arg):
+    def ensure_script(self, arg):
         if not arg:
             return
         try:
-            self.ensure_string(arg, None)
+            self.ensure_string(arg)
         except:
             try:
-                self.ensure_filename(arg, None)
+                self.ensure_filename(arg)
             except:
-                raise RuntimeError, \
-                    "cannot decipher script option (%s)" \
-                    % arg
+                raise RuntimeError, "cannot decipher script option (%s)" % arg
 
     def write_script (self,path,attr,default=None):
         """ write the script specified in attr to path. if attr is None,