summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2018-06-05 09:47:35 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-06-05 12:01:05 -0400
commitd4c5cd1d939ac9bc8f4e2065e5afa83b1fa00418 (patch)
tree00a71160f4ee549b5387c9e7d545e1b9edccbe1d /recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch
parent343b40ba0d44caeb22013a1586ae2159e415bd4c (diff)
downloadmeta-virtualization-d4c5cd1d939ac9bc8f4e2065e5afa83b1fa00418.tar.gz
openvswitch: remove unused patches
commit 1fd1ff372014 [openvswitch: uprev to v2.9.2] left a bunch of unused patches in place. Remove unreferenced patches as they are no longer needed. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
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.patch31
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 @@
1From 8557d51e8c7325a17219911e9a65eeb3946e869f Mon Sep 17 00:00:00 2001
2From: Jason Wessel <jason.wessel@windriver.com>
3Date: Thu, 29 Jun 2017 20:33:23 -0700
4Subject: [PATCH] Python3 compatibility: execfile to exec
5
6Commit a4d10a7ca937d73873f6f98619d88682e69f5dbe from
7https://github.com/openvswitch/ovs.git
8
9Allow compability with python3 and python2 by changing execfile() to
10exec().
11
12Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
13Signed-off-by: Ben Pfaff <blp@ovn.org>
14
15---
16 ovsdb/ovsdb-idlc.in | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
20index 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