1 |
commit: 1160eeb2569486785c0568cd84090e4029cc0747 |
2 |
Author: dol-sen <brian.dolbec <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Sep 26 01:17:11 2011 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Sep 26 01:17:11 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=1160eeb2 |
7 |
|
8 |
fix a py3 failure, because the file was not opened in binary mode. |
9 |
|
10 |
--- |
11 |
layman/overlays/tar.py | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/layman/overlays/tar.py b/layman/overlays/tar.py |
15 |
index 5d66acc..c6f2443 100644 |
16 |
--- a/layman/overlays/tar.py |
17 |
+++ b/layman/overlays/tar.py |
18 |
@@ -118,7 +118,7 @@ class TarOverlay(OverlaySource): |
19 |
pkg = path([base, self.parent.name + ext]) |
20 |
|
21 |
try: |
22 |
- out_file = open(pkg, 'w') |
23 |
+ out_file = open(pkg, 'w+b') |
24 |
out_file.write(tar) |
25 |
out_file.close() |
26 |
except Exception, error: |