Re: [PATCH] use python 2.x exception syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/pykickstart/parser.py b/pykickstart/parser.py
> index 160874c..21525f1 100644
> --- a/pykickstart/parser.py
> +++ b/pykickstart/parser.py
> @@ -136,7 +136,7 @@ def preprocessKickstart (file):
>      """
>      try:
>          fh = urlopen(file)
> -    except grabber.URLGrabError as e:
> +    except grabber.URLGrabError, e:
>          raise IOError, formatErrorMsg(0, msg=_("Unable to open input kickstart file: %s") % e.strerror)
>  
>      rc = _preprocessStateMachine (lambda: fh.readline())
> @@ -764,7 +764,7 @@ class KickstartParser:
>  
>          try:
>              fh = urlopen(f)
> -        except grabber.URLGrabError as e:
> +        except grabber.URLGrabError, e:
>              raise IOError, formatErrorMsg(0, msg=_("Unable to open input kickstart file: %s") % e.strerror)
>  
>          self._stateMachine (lambda: fh.readline())

Which version of pykickstart is this meant to apply to?

- Chris

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux