Whilespace normalization (reindint.py).

This commit is contained in:
Tim Peters 2006-04-18 17:32:12 +00:00
parent 17a35f906c
commit 584b0e0c3d
31 changed files with 53 additions and 314 deletions

View file

@ -11,17 +11,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 +77,3 @@ def format_alias(name, aliases):
else:
source = '--filename=%r' % source
return source+name+' '+command