Remove space cats

This commit is contained in:
mpeterv 2015-11-23 19:21:56 +03:00
parent cbca13efc6
commit dea278fe72

View File

@ -51,11 +51,8 @@ def get_default_cache():
def quote(command_arg): def quote(command_arg):
return "'" + command_arg.replace("'", "'\"'\"'") + "'" return "'" + command_arg.replace("'", "'\"'\"'") + "'"
def space_cat(*args):
return " ".join(filter(None, args))
def exec_command(capture, *args): def exec_command(capture, *args):
command = space_cat(*args) command = " ".join(args)
if opts.verbose: if opts.verbose:
print("Running " + command) print("Running " + command)