projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95a0f4
)
Fix tar_contents() to open files in binary mode for py3k compatibility.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 4 Aug 2009 21:14:58 +0000
(21:14 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 4 Aug 2009 21:14:58 +0000
(21:14 -0000)
svn path=/main/trunk/; revision=13908
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 72c8292719e1593e9f9da50c3d362489ce6507ea..f99fb69da1fdd813c17ffff16b14e8c51d88e953 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-4147,7
+4147,7
@@
def tar_contents(contents, root, tar, protect=None, onProgress=None):
tarinfo.size = 0
tar.addfile(tarinfo)
else:
- f = open(path)
+ f = open(path
, 'rb'
)
try:
tar.addfile(tarinfo, f)
finally: