[master 1/4] Add kwargs to eintr_retry_call

dashea installerbot-noreply at redhat.com
Tue Jun 23 14:54:00 UTC 2015


From: David Shea <dshea at redhat.com>

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

diff --git a/blivet/util.py b/blivet/util.py
index cf329f9..b39308b 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -628,11 +628,11 @@ def power_of_two(value):
     return True
 
 # 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/blivet/commit/11de3f4420920ca163c6e71f1caff28d17aecf43


More information about the anaconda-patches mailing list