From: Zac Medico Date: Sat, 2 Mar 2013 03:44:34 +0000 (-0800) Subject: repoman: remove unused grouplist function X-Git-Tag: v2.2.0_alpha164 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7509930d67c24899a6bb41323048a3b9cd9011da;p=portage.git repoman: remove unused grouplist function --- 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