From c3296eab8b1919b8f4c3fcdbfbd34deca6a22040 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 4 Jun 2002 20:26:44 +0000 Subject: Fix unused local variables caught by pychecker. Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have prevented it from building subpackages. --- core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core.py') diff --git a/core.py b/core.py index 222e6aeb..fbf5d511 100644 --- a/core.py +++ b/core.py @@ -125,9 +125,7 @@ def setup (**attrs): try: ok = dist.parse_command_line() except DistutilsArgError, msg: - script = os.path.basename(dist.script_name) - raise SystemExit, \ - gen_usage(dist.script_name) + "\nerror: %s" % msg + raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg if DEBUG: print "options (after parsing command line):" -- cgit v1.2.1