[master 3/9] Allow kwargs in eintr_retry_call

dashea installerbot-noreply at redhat.com
Thu Jun 18 21:03:49 UTC 2015


From: David Shea <dshea at redhat.com>

---
 pyanaconda/iutil.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index 1ddf342..f06d19e 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -1295,11 +1295,11 @@ def ipmi_report(event):
     os.remove(path)
 
 # Copied from python's subprocess.py
-def eintr_retry_call(func, *args):
+def eintr_retry_call(func, *args, **kwargs):
     """Retry an interruptible system call if interrupted."""
     while True:
         try:
-            return func(*args)
+            return func(*args, **kwargs)
         except (OSError, IOError) as e:
             if e.errno == errno.EINTR:
                 continue


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/14fa2f73263f1d15d54d34ea1bde68869fe3749d


More information about the anaconda-patches mailing list