Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
openvswitch
0003-ovsdb-ovsdb-dot.in-Change-exception-semant...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-ovsdb-ovsdb-dot.in-Change-exception-semantics-for-Py.patch of Package openvswitch
From 51bd7584b481eb702eb82f392fda7023a72cd75a Mon Sep 17 00:00:00 2001 From: Markos Chandras <mchandras@suse.de> Date: Wed, 27 Dec 2017 18:27:12 +0000 Subject: [PATCH branch-2.8 3/4] ovsdb: ovsdb-dot.in: Change exception semantics for Python3 PEP-3110 changes the semantics for capturing exceptions in Python3 from 'except E,N' to 'except E as N'. This fixes the following problem when building with python3 SyntaxError: invalid syntax File "./ovsdb/ovsdb-dot.in", line 106 except ovs.db.error.Error, e: ^ SyntaxError: invalid syntax Link: https://www.python.org/dev/peps/pep-3110/ Signed-off-by: Markos Chandras <mchandras@suse.de> --- ovsdb/ovsdb-dot.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in index 7f846836d..43c50dabd 100755 --- a/ovsdb/ovsdb-dot.in +++ b/ovsdb/ovsdb-dot.in @@ -81,7 +81,7 @@ if __name__ == "__main__": options, args = getopt.gnu_getopt(sys.argv[1:], 'hV', ['no-arrows', 'help', 'version',]) - except getopt.GetoptError, geo: + except getopt.GetoptError as geo: sys.stderr.write("%s: %s\n" % (argv0, geo.msg)) sys.exit(1) @@ -103,7 +103,7 @@ if __name__ == "__main__": schemaToDot(args[0], arrows) - except ovs.db.error.Error, e: + except ovs.db.error.Error as e: sys.stderr.write("%s: %s\n" % (argv0, e.msg)) sys.exit(1) -- 2.16.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor