From 2bcfbe93584f3e9bdd4f80ff4cce43e39a545914 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 29 Oct 2011 21:19:17 +0200 Subject: api.apps: Fix handling of single-string return values --- ranger/api/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/api/apps.py b/ranger/api/apps.py index 1af3167b..56f8afd2 100644 --- a/ranger/api/apps.py +++ b/ranger/api/apps.py @@ -109,7 +109,7 @@ class Applications(FileManagerAware): arguments = handler(context) # flatten if isinstance(arguments, str): - return (arguments, ) + return arguments if arguments is None: return None result = [] -- cgit 1.4.1-2-gfad0