All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-cloud-services][PATCH] openstackchef_inc.bbclass: Update python synthax for except
@ 2016-09-16 14:12 Adrian Dudau
  2016-09-19 20:04 ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Dudau @ 2016-09-16 14:12 UTC (permalink / raw)
  To: meta-virtualization

The synthax used is deprecated and causes errors.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
---
 meta-openstack/classes/openstackchef_inc.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-openstack/classes/openstackchef_inc.bbclass b/meta-openstack/classes/openstackchef_inc.bbclass
index b8757be..048fce6 100644
--- a/meta-openstack/classes/openstackchef_inc.bbclass
+++ b/meta-openstack/classes/openstackchef_inc.bbclass
@@ -248,7 +248,7 @@ def deploychef_make_startup_shutdown_list(d):
                     raise bb.build.FuncFailed(msg)
             hStartup.close()
             hShutdown.close()
-        except IOError, e:
+        except IOError as e:
             bb.error("Error opening startup/shutdown files %s %s,  %s %s" % \
             (startup_file, shutdown_file, d.getVar('FILE'), e))
     else:
@@ -381,7 +381,7 @@ def deploychef_make_templates( d, conf_tuple=tuple()):
                         deploychef_make_substitutions(d, sub_dict, attr_file, file_name)
                     else:
                         bb.build.FuncFailed(msg)
-        except IOError, e:
+        except IOError as e:
             bb.error("Could not write to attribute file %s: in %s,  %s" % \
             (attr_file, d.getVar('FILE'), e))
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-cloud-services][PATCH] openstackchef_inc.bbclass: Update python synthax for except
  2016-09-16 14:12 [meta-cloud-services][PATCH] openstackchef_inc.bbclass: Update python synthax for except Adrian Dudau
@ 2016-09-19 20:04 ` Bruce Ashfield
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2016-09-19 20:04 UTC (permalink / raw)
  To: Adrian Dudau; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]

merged.

Bruce

On Fri, Sep 16, 2016 at 10:12 AM, Adrian Dudau <adrian.dudau@enea.com>
wrote:

> The synthax used is deprecated and causes errors.
>
> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
> ---
>  meta-openstack/classes/openstackchef_inc.bbclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-openstack/classes/openstackchef_inc.bbclass
> b/meta-openstack/classes/openstackchef_inc.bbclass
> index b8757be..048fce6 100644
> --- a/meta-openstack/classes/openstackchef_inc.bbclass
> +++ b/meta-openstack/classes/openstackchef_inc.bbclass
> @@ -248,7 +248,7 @@ def deploychef_make_startup_shutdown_list(d):
>                      raise bb.build.FuncFailed(msg)
>              hStartup.close()
>              hShutdown.close()
> -        except IOError, e:
> +        except IOError as e:
>              bb.error("Error opening startup/shutdown files %s %s,  %s %s"
> % \
>              (startup_file, shutdown_file, d.getVar('FILE'), e))
>      else:
> @@ -381,7 +381,7 @@ def deploychef_make_templates( d, conf_tuple=tuple()):
>                          deploychef_make_substitutions(d, sub_dict,
> attr_file, file_name)
>                      else:
>                          bb.build.FuncFailed(msg)
> -        except IOError, e:
> +        except IOError as e:
>              bb.error("Could not write to attribute file %s: in %s,  %s" %
> \
>              (attr_file, d.getVar('FILE'), e))
>
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 2741 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [meta-cloud-services][PATCH] openstackchef_inc.bbclass: Update python synthax for except
@ 2016-09-16 13:55 Adrian Dudau
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Dudau @ 2016-09-16 13:55 UTC (permalink / raw)
  To: meta-virtualization

The synthax used is deprecated and causes errors.

Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
---
 meta-openstack/classes/openstackchef_inc.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-openstack/classes/openstackchef_inc.bbclass b/meta-openstack/classes/openstackchef_inc.bbclass
index b8757be..048fce6 100644
--- a/meta-openstack/classes/openstackchef_inc.bbclass
+++ b/meta-openstack/classes/openstackchef_inc.bbclass
@@ -248,7 +248,7 @@ def deploychef_make_startup_shutdown_list(d):
                     raise bb.build.FuncFailed(msg)
             hStartup.close()
             hShutdown.close()
-        except IOError, e:
+        except IOError as e:
             bb.error("Error opening startup/shutdown files %s %s,  %s %s" % \
             (startup_file, shutdown_file, d.getVar('FILE'), e))
     else:
@@ -381,7 +381,7 @@ def deploychef_make_templates( d, conf_tuple=tuple()):
                         deploychef_make_substitutions(d, sub_dict, attr_file, file_name)
                     else:
                         bb.build.FuncFailed(msg)
-        except IOError, e:
+        except IOError as e:
             bb.error("Could not write to attribute file %s: in %s,  %s" % \
             (attr_file, d.getVar('FILE'), e))
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-19 20:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16 14:12 [meta-cloud-services][PATCH] openstackchef_inc.bbclass: Update python synthax for except Adrian Dudau
2016-09-19 20:04 ` Bruce Ashfield
  -- strict thread matches above, loose matches on Subject: below --
2016-09-16 13:55 Adrian Dudau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.