[PATCH 2/9] Replace StandardError with Exception (#1014220)

Anne Mulhern amulhern at redhat.com
Wed Jan 28 23:45:13 UTC 2015


Ack.

- mulhern



----- Original Message -----
> From: "Martin Kolman" <mkolman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Wednesday, January 28, 2015 12:43:16 PM
> Subject: [PATCH 2/9] Replace StandardError with Exception (#1014220)
> 
> StandardError has been deprecated in Python 3 and using
> Exception in its place should do the same thing.
> 
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
>  pyanaconda/anaconda_argparse.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/anaconda_argparse.py
> b/pyanaconda/anaconda_argparse.py
> index 5c85213..916397f 100644
> --- a/pyanaconda/anaconda_argparse.py
> +++ b/pyanaconda/anaconda_argparse.py
> @@ -349,7 +349,7 @@ class HelpTextParser(object):
>                  with open(self._path) as lines:
>                      for parsed_option, parsed_text in self.read(lines):
>                          self._help_text[parsed_option] = parsed_text
> -            except StandardError:
> +            except Exception:  # pylint: disable=broad-except
>                  log.error("error reading help text file %s", self._path)
>  
>          return self._help_text.get(option, "")
> --
> 2.1.0
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 


More information about the anaconda-patches mailing list