Commit a31410a5 authored by Jason R. Coombs's avatar Jason R. Coombs

Remove excess whitespace and unused imports.

parent c20ed4df
import distutils, os
from setuptools import Command
from distutils.util import convert_path
from distutils import log
from distutils.errors import * from distutils.errors import *
from setuptools.command.setopt import edit_config, option_base, config_file from setuptools.command.setopt import edit_config, option_base, config_file
...@@ -11,17 +7,17 @@ def shquote(arg): ...@@ -11,17 +7,17 @@ def shquote(arg):
if c in arg: return repr(arg) if c in arg: return repr(arg)
if arg.split() != [arg]: if arg.split() != [arg]:
return repr(arg) return repr(arg)
return arg return arg
class alias(option_base): class alias(option_base):
"""Define a shortcut that invokes one or more commands""" """Define a shortcut that invokes one or more commands"""
description = "define a shortcut to invoke one or more commands" description = "define a shortcut to invoke one or more commands"
command_consumes_arguments = True command_consumes_arguments = True
user_options = [ user_options = [
('remove', 'r', 'remove (unset) the alias'), ('remove', 'r', 'remove (unset) the alias'),
] + option_base.user_options ] + option_base.user_options
boolean_options = option_base.boolean_options + ['remove'] boolean_options = option_base.boolean_options + ['remove']
...@@ -77,6 +73,3 @@ def format_alias(name, aliases): ...@@ -77,6 +73,3 @@ def format_alias(name, aliases):
else: else:
source = '--filename=%r' % source source = '--filename=%r' % source
return source+name+' '+command return source+name+' '+command
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment