diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 20:26:44 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-06-04 20:26:44 (GMT) |
commit | a2f9989c1a5451253d1e6e8508af422363c7e113 (patch) | |
tree | 01836feb7f7de4b1cf1ee3e5540931afa7911bbe /Lib/distutils/core.py | |
parent | a181ec07af8f0ab34d17be777d65935189df5054 (diff) | |
download | cpython-a2f9989c1a5451253d1e6e8508af422363c7e113.zip cpython-a2f9989c1a5451253d1e6e8508af422363c7e113.tar.gz cpython-a2f9989c1a5451253d1e6e8508af422363c7e113.tar.bz2 |
Fix unused local variables caught by pychecker.
Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have
prevented it from building subpackages.
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r-- | Lib/distutils/core.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 222e6ae..fbf5d51 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/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):" |