1 |
Author: zmedico |
2 |
Date: 2010-01-30 10:41:23 +0000 (Sat, 30 Jan 2010) |
3 |
New Revision: 15280 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dbapi/vartree.py |
7 |
Log: |
8 |
Fix code from r15278 for python3 unicode compatibility. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/dbapi/vartree.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/dbapi/vartree.py 2010-01-30 10:33:07 UTC (rev 15279) |
14 |
+++ main/trunk/pym/portage/dbapi/vartree.py 2010-01-30 10:41:23 UTC (rev 15280) |
15 |
@@ -4593,8 +4593,9 @@ |
16 |
# Create an empty file as a place holder in order to avoid |
17 |
# potential collision-protect issues. |
18 |
f = tempfile.TemporaryFile() |
19 |
- f.write("# empty file because --include-config=n " + \ |
20 |
- "when `quickpkg` was used\n") |
21 |
+ f.write(_unicode_encode( |
22 |
+ "# empty file because --include-config=n " + \ |
23 |
+ "when `quickpkg` was used\n")) |
24 |
f.flush() |
25 |
f.seek(0) |
26 |
tarinfo.size = os.fstat(f.fileno()).st_size |