diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-09 18:41:55 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-09 18:41:55 -0500 |
commit | a31410a54b0e756c3ee27f2bcfe2dd6301968c77 (patch) | |
tree | fe5b7ef6e962c66486748e174e6bf624cd234ef6 /setuptools/command/alias.py | |
parent | c20ed4dffd0779fc12c9b2fbc6433621424dbfcf (diff) | |
download | python-setuptools-git-a31410a54b0e756c3ee27f2bcfe2dd6301968c77.tar.gz |
Remove excess whitespace and unused imports.
Diffstat (limited to 'setuptools/command/alias.py')
-rwxr-xr-x | setuptools/command/alias.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/setuptools/command/alias.py b/setuptools/command/alias.py index 52384e1a..465d6ae4 100755 --- a/setuptools/command/alias.py +++ b/setuptools/command/alias.py @@ -1,7 +1,3 @@ -import distutils, os -from setuptools import Command -from distutils.util import convert_path -from distutils import log from distutils.errors import * from setuptools.command.setopt import edit_config, option_base, config_file @@ -11,17 +7,17 @@ def shquote(arg): if c in arg: return repr(arg) if arg.split() != [arg]: return repr(arg) - return arg + return arg class alias(option_base): """Define a shortcut that invokes one or more commands""" - + description = "define a shortcut to invoke one or more commands" command_consumes_arguments = True user_options = [ - ('remove', 'r', 'remove (unset) the alias'), + ('remove', 'r', 'remove (unset) the alias'), ] + option_base.user_options boolean_options = option_base.boolean_options + ['remove'] @@ -77,6 +73,3 @@ def format_alias(name, aliases): else: source = '--filename=%r' % source return source+name+' '+command - - - |