1 |
Author: zmedico |
2 |
Date: 2009-09-29 05:56:39 +0000 (Tue, 29 Sep 2009) |
3 |
New Revision: 14460 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/xpak.py |
7 |
Log: |
8 |
Make tbz2.get_data() return an empty dict on failure. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/xpak.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/xpak.py 2009-09-29 05:23:23 UTC (rev 14459) |
14 |
+++ main/trunk/pym/portage/xpak.py 2009-09-29 05:56:39 UTC (rev 14460) |
15 |
@@ -436,7 +436,7 @@ |
16 |
def get_data(self): |
17 |
"""Returns all the files from the dataSegment as a map object.""" |
18 |
if not self.scan(): |
19 |
- return 0 |
20 |
+ return {} |
21 |
a = open(_unicode_encode(self.file, |
22 |
encoding=_encodings['fs'], errors='strict'), 'rb') |
23 |
mydata = {} |