From 199f9705b1a94a6e0ca419405482416e2e097597 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 29 Sep 2009 05:56:39 +0000 Subject: Make tbz2.get_data() return an empty dict on failure. svn path=/main/trunk/; revision=14460 --- pym/portage/xpak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/xpak.py b/pym/portage/xpak.py index a9e15b563..262f14c85 100644 --- a/pym/portage/xpak.py +++ b/pym/portage/xpak.py @@ -436,7 +436,7 @@ class tbz2(object): def get_data(self): """Returns all the files from the dataSegment as a map object.""" if not self.scan(): - return 0 + return {} a = open(_unicode_encode(self.file, encoding=_encodings['fs'], errors='strict'), 'rb') mydata = {} -- cgit v1.2.3-1-g7c22