Commit 0cca0af7 authored by Nicolai Hähnle's avatar Nicolai Hähnle Committed by Marek Olšák

framework: fix grouptools.commonprefix when len(args) == 1

Reviewed-by: Dylan Baker's avatarDylan Baker <dylan@pnwbakers.com>
parent 30b992bd
......@@ -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 ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment