diff options
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch')
| -rw-r--r-- | recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch b/recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch deleted file mode 100644 index 98d77c8a..00000000 --- a/recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From 8557d51e8c7325a17219911e9a65eeb3946e869f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jason Wessel <jason.wessel@windriver.com> | ||
| 3 | Date: Thu, 29 Jun 2017 20:33:23 -0700 | ||
| 4 | Subject: [PATCH] Python3 compatibility: execfile to exec | ||
| 5 | |||
| 6 | Commit a4d10a7ca937d73873f6f98619d88682e69f5dbe from | ||
| 7 | https://github.com/openvswitch/ovs.git | ||
| 8 | |||
| 9 | Allow compability with python3 and python2 by changing execfile() to | ||
| 10 | exec(). | ||
| 11 | |||
| 12 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | ||
| 13 | Signed-off-by: Ben Pfaff <blp@ovn.org> | ||
| 14 | |||
| 15 | --- | ||
| 16 | ovsdb/ovsdb-idlc.in | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in | ||
| 20 | index e7e1c6b..e1551f9 100755 | ||
| 21 | --- a/ovsdb/ovsdb-idlc.in | ||
| 22 | +++ b/ovsdb/ovsdb-idlc.in | ||
| 23 | @@ -17,7 +17,7 @@ def parseSchema(filename): | ||
| 24 | |||
| 25 | def annotateSchema(schemaFile, annotationFile): | ||
| 26 | schemaJson = ovs.json.from_file(schemaFile) | ||
| 27 | - execfile(annotationFile, globals(), {"s": schemaJson}) | ||
| 28 | + exec(compile(open(annotationFile, "rb").read(), annotationFile, 'exec'), globals(), {"s": schemaJson}) | ||
| 29 | ovs.json.to_stream(schemaJson, sys.stdout) | ||
| 30 | sys.stdout.write('\n') | ||
| 31 | |||
