From e5feb1718701e269c90e40e1a850a8c265c653be Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 28 Sep 2008 14:53:35 +0000 Subject: [PATCH] I seem not to understand correctly how weird Python is, fix AttributeError: 'list' object has no attribute 'strip' error. svn path=/main/branches/prefix/; revision=11580 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 3cade30f9..2708cc9df 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -679,7 +679,7 @@ class LinkageMapMachO(object): for items in self._dbapi.plib_registry.getPreservedLibs().values(): args += [x.lstrip(".") for x in items] proc = subprocess.Popen(args, stdout=subprocess.PIPE) - output = [proc.communicate()[0].split("\n")] + output = [l for l in proc.communicate()[0].split("\n")] lines += output for l in lines: -- 2.26.2