summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/0003-Python3-compatibility-execfile-to-exec.patch
diff options
context:
space:
mode:
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