Mercurial > hg > truffle
changeset 11318:345bce66c04a
mx: fix for select_items
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 16 Aug 2013 14:44:56 +0200 |
parents | 12fe444e68d2 |
children | 602a25aade24 |
files | mxtool/mx.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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)):