From: Fabian Groffen Date: Sun, 28 Sep 2008 14:53:35 +0000 (-0000) Subject: I seem not to understand correctly how weird Python is, fix AttributeError: 'list... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e5feb1718701e269c90e40e1a850a8c265c653be;p=portage.git 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 --- 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: