From: Zac Medico Date: Sun, 2 Sep 2012 23:46:54 +0000 (-0700) Subject: emaint cleanconfmem: fix writedict breakage X-Git-Tag: v2.2.0_alpha124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=03236ec6bf2040468aeb1bb308fec072aac8cc1b;p=portage.git emaint cleanconfmem: fix writedict breakage Use grabdict so the values are stored as lists like writedict expects. --- 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)