I seem not to understand correctly how weird Python is, fix AttributeError: 'list...
authorFabian Groffen <grobian@gentoo.org>
Sun, 28 Sep 2008 14:53:35 +0000 (14:53 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sun, 28 Sep 2008 14:53:35 +0000 (14:53 -0000)
svn path=/main/branches/prefix/; revision=11580

pym/portage/dbapi/vartree.py

index 3cade30f9e9f17c8fc034c7e63a9832939acfff6..2708cc9df3b3a08acd5ad829e718c64216322c63 100644 (file)
@@ -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: