From: Zac Medico Date: Wed, 25 May 2011 04:55:59 +0000 (-0700) Subject: writedict: raise any exceptions X-Git-Tag: v2.2.0_alpha36~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a5a15fe39adab09d9a0e0d2b1d4ee7064278c09;p=portage.git 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. --- 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): """