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

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



> 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


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