diff mxtool/mx.py @ 11318:345bce66c04a

mx: fix for select_items
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 16 Aug 2013 14:44:56 +0200
parents 8bcae501c51b
children 9cdf7a9d3475
line wrap: on
line diff
--- a/mxtool/mx.py	Fri Aug 16 14:33:45 2013 +0200
+++ b/mxtool/mx.py	Fri Aug 16 14:44:56 2013 +0200
@@ -3326,9 +3326,9 @@
     Presents a command line interface for selecting one or more (if allowMultiple is true) items.
     
     """
-    if len(items) == 0:
-        return []
-    elif len(items) > 1:
+    if len(items) <= 1:
+        return items
+    else:
         if allowMultiple:
             log('[0] <all>')
         for i in range(0, len(items)):