From 03236ec6bf2040468aeb1bb308fec072aac8cc1b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 2 Sep 2012 16:46:54 -0700 Subject: [PATCH] emaint cleanconfmem: fix writedict breakage Use grabdict so the values are stored as lists like writedict expects. --- pym/portage/emaint/modules/config/config.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pym/portage/emaint/modules/config/config.py b/pym/portage/emaint/modules/config/config.py index f20068cda..dad024b21 100644 --- a/pym/portage/emaint/modules/config/config.py +++ b/pym/portage/emaint/modules/config/config.py @@ -4,7 +4,7 @@ import portage from portage import os from portage.const import PRIVATE_PATH -from portage.util import writedict +from portage.util import grabdict, writedict class CleanConfig(object): @@ -19,14 +19,7 @@ class CleanConfig(object): name = staticmethod(name) def load_configlist(self): - - configs = {} - with open(self.target, 'r') as configfile: - lines = configfile.readlines() - for line in lines: - ls = line.split() - configs[ls[0]] = ls[1] - return configs + return grabdict(self.target) def check(self, **kwargs): onProgress = kwargs.get('onProgress', None) -- 2.26.2