summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-09-20 13:00:19 +0200
committerMarek Olšák <marek.olsak@amd.com>2018-05-02 17:29:02 -0400
commit0cca0af7a482540c896bfe2f0afeeae1d04cfc2f (patch)
tree948aeb5b670f1c40a4a1250f37cd266c899a1a01
parent30b992bdc047073e1fe99b1ac622f026618a8081 (diff)
framework: fix grouptools.commonprefix when len(args) == 1
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r--framework/grouptools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/grouptools.py b/framework/grouptools.py
index f28241d3c..ce2e97c79 100644
--- a/framework/grouptools.py
+++ b/framework/grouptools.py
@@ -89,7 +89,7 @@ def splitname(group):
def commonprefix(args):
"""Given a list of groups, returns the longest common leading component."""
if len(args) == 1:
- return args
+ return args[0]
elif any(e == '' for e in args):
return ''