summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-02-09 18:41:55 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-02-09 18:41:55 -0500
commitb47f33c14fce1d5f9121e5b797f96cb0cbaba067 (patch)
treeb1552743b5236735071f7478f877d7009debfdf1
parent3a63658aa2425c92b88343b9b35ab9a775ae8ca3 (diff)
downloadpython-setuptools-bitbucket-b47f33c14fce1d5f9121e5b797f96cb0cbaba067.tar.gz
Remove excess whitespace and unused imports.
-rwxr-xr-xsetuptools/command/alias.py13
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
-
-
-