From 689fd034c812c7a64be64f34b50026472d766579 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 7d071e42e..60b9575a9 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -470,8 +470,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