[master 3/9] Allow kwargs in eintr_retry_call

Chris Lumens clumens at redhat.com
Fri Jun 19 13:10:25 UTC 2015


> 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

This should sadly be duplicated in pocketlint, too.

- Chris


More information about the anaconda-patches mailing list