[kupfer] commands: Remove redundant special case
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] commands: Remove redundant special case
- Date: Sun, 9 May 2010 15:54:52 +0000 (UTC)
commit 2af3745bbd6b19096ae7f57e069ffb803fc060a0
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Fri May 7 22:38:04 2010 +0200
commands: Remove redundant special case
Just a small thinko
kupfer/plugin/commands.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/plugin/commands.py b/kupfer/plugin/commands.py
index 83c2b63..7194416 100644
--- a/kupfer/plugin/commands.py
+++ b/kupfer/plugin/commands.py
@@ -34,10 +34,7 @@ class GetOutput (Action):
argv = unicode_shlex_split(commandline)
except ValueError:
# Exception raised on unpaired quotation marks
- if " " in commandline:
- argv = commandline.split(None, 1)
- else:
- argv = [commandline]
+ argv = commandline.split(None, 1)
ctx = commandexec.DefaultActionExecutionContext()
token = ctx.get_async_token()
pretty.print_debug(__name__, "Spawning with timeout 15 seconds")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]