From 5a5a15fe39adab09d9a0e0d2b1d4ee7064278c09 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 24 May 2011 21:55:59 -0700 Subject: [PATCH] writedict: raise any exceptions We don't have any code that checks the writedict return value, so we'd better raise an exception if it fails. --- pym/portage/util/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 3cf6c5bab..0dff25ff8 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -505,8 +505,7 @@ def writedict(mydict,myfilename,writekey=True): except IOError: if myfile is not None: myfile.abort() - return 0 - return 1 + raise def shlex_split(s): """ -- 2.26.2