summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-14 11:39:26 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-14 11:39:26 +0000
commit37440ac5fae7e5c4ceaef00e99e0f88bd8d40ee3 (patch)
tree472410291e77e9ea831bab418339741e12d885e4
parentae264c8637ca2e2ad2fdec7e5205804ccf6eea94 (diff)
downloadportage-37440ac5fae7e5c4ceaef00e99e0f88bd8d40ee3.tar.gz
portage-37440ac5fae7e5c4ceaef00e99e0f88bd8d40ee3.tar.bz2
portage-37440ac5fae7e5c4ceaef00e99e0f88bd8d40ee3.zip
Write raw bytes instead of attempting to encode as utf-8 for bug #133287.
svn path=/main/trunk/; revision=3349
-rw-r--r--pym/cache/flat_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/flat_hash.py b/pym/cache/flat_hash.py
index b255b56e2..dfa7ad0c7 100644
--- a/pym/cache/flat_hash.py
+++ b/pym/cache/flat_hash.py
@@ -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.write(("%s=%s\n" % (k, v)).encode("utf-8"))
+ myf.write("%s=%s\n" % (k, v))
myf.close()
self._ensure_access(fp, mtime=values["_mtime_"])