[PATCH] use python 2.x exception syntax
Chris Lumens
clumens at redhat.com
Fri Nov 13 14:15:08 UTC 2009
> 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
More information about the Kickstart-list
mailing list