From: Zac Medico Date: Tue, 29 Sep 2009 05:56:39 +0000 (-0000) Subject: Make tbz2.get_data() return an empty dict on failure. X-Git-Tag: v2.2_rc43~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=199f9705b1a94a6e0ca419405482416e2e097597;p=portage.git Make tbz2.get_data() return an empty dict on failure. svn path=/main/trunk/; revision=14460 --- 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 = {}