summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/files.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py
index be356ec7e..d26f29d1d 100644
--- a/pym/portage/sets/files.py
+++ b/pym/portage/sets/files.py
@@ -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