From 7509930d67c24899a6bb41323048a3b9cd9011da Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Mar 2013 19:44:34 -0800 Subject: [PATCH] repoman: remove unused grouplist function --- bin/repoman | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/bin/repoman b/bin/repoman index 07f0adc03..5c58bea69 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2360,22 +2360,6 @@ del console_writer, f, style_file qa_output = qa_output.getvalue() qa_output = qa_output.splitlines(True) -def grouplist(mylist, seperator="/"): - """(list,seperator="/") -- Takes a list of elements; groups them into - same initial element categories. Returns a dict of {base:[sublist]} - From: ["blah/foo","spork/spatula","blah/weee/splat"] - To: {"blah":["foo","weee/splat"], "spork":["spatula"]}""" - mygroups = {} - for x in mylist: - xs = x.split(seperator) - if xs[0] == ".": - xs = xs[1:] - if xs[0] not in mygroups: - mygroups[xs[0]] = [seperator.join(xs[1:])] - else: - mygroups[xs[0]] += [seperator.join(xs[1:])] - return mygroups - suggest_ignore_masked = False suggest_include_dev = False -- 2.26.2