* [gentoo-commits] portage r11432 - main/trunk/pym/portage/sets
@ 2008-08-18 7:47 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-08-18 7:47 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-08-18 07:47:18 +0000 (Mon, 18 Aug 2008)
New Revision: 11432
Modified:
main/trunk/pym/portage/sets/files.py
Log:
Fix atom -> str breakage in StaticFileSet.write().
Modified: main/trunk/pym/portage/sets/files.py
===================================================================
--- main/trunk/pym/portage/sets/files.py 2008-08-17 23:05:32 UTC (rev 11431)
+++ main/trunk/pym/portage/sets/files.py 2008-08-18 07:47:18 UTC (rev 11432)
@@ -59,9 +59,9 @@
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-18 7:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 7:47 [gentoo-commits] portage r11432 - main/trunk/pym/portage/sets Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox