Fix atom -> str breakage in StaticFileSet.write().
authorZac Medico <zmedico@gentoo.org>
Mon, 18 Aug 2008 07:47:18 +0000 (07:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 18 Aug 2008 07:47:18 +0000 (07:47 -0000)
svn path=/main/trunk/; revision=11432

pym/portage/sets/files.py

index be356ec7eab0200d5d11e484c818ac8724d7a6ce..d26f29d1db1b2be4553ff79465ed7087ea9e5ee8 100644 (file)
@@ -59,9 +59,9 @@ class StaticFileSet(EditablePackageSet):
                return ValidAtomValidator(atom)
 
        def write(self):
-               write_atomic(self._filename, "\n".join(sorted(
-                       chain(self._atoms, self._nonatoms)))+"\n")
-       
+               write_atomic(self._filename, "".join("%s\n" % (atom,) \
+                       for atom in sorted(chain(self._atoms, self._nonatoms))))
+
        def load(self):
                try:
                        mtime = os.stat(self._filename).st_mtime