Replace inappropriate use of writelines with normal write.
authorZac Medico <zmedico@gentoo.org>
Sun, 7 May 2006 06:54:59 +0000 (06:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 May 2006 06:54:59 +0000 (06:54 -0000)
svn path=/main/trunk/; revision=3327

pym/cache/flat_hash.py

index 8ebd70f7dc02fe2f201f9303670af945c7dc7ddc..dfa7ad0c7ee3f59638496c8998b76a688081e84f 100644 (file)
@@ -82,7 +82,7 @@ class database(fs_template.FsBased):
 
                for k, v in values.items():
                        if k != "_mtime_" and (k == "_eclasses_" or k in self._known_keys):
-                               myf.writelines("%s=%s\n" % (k, v))
+                               myf.write("%s=%s\n" % (k, v))
 
                myf.close()
                self._ensure_access(fp, mtime=values["_mtime_"])