diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch')
| -rw-r--r-- | meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch b/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch new file mode 100644 index 0000000000..d73da07d25 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-pyroute2/import-simplejson-as-json.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Upstream-Status: Inappropriate [wrong dependency] | ||
| 2 | |||
| 3 | Subject: [PATCH] import simplejson as json | ||
| 4 | |||
| 5 | At runtime python-pyroute2 tries to import json, but the module is not | ||
| 6 | available, import simplejson as json solve the issue. | ||
| 7 | |||
| 8 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> | ||
| 9 | --- | ||
| 10 | pyroute2/netlink/rtnl/ifinfmsg.py | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/pyroute2/netlink/rtnl/ifinfmsg.py b/pyroute2/netlink/rtnl/ifinfmsg.py | ||
| 14 | index 4f14f25..55643eb 100644 | ||
| 15 | --- a/pyroute2/netlink/rtnl/ifinfmsg.py | ||
| 16 | +++ b/pyroute2/netlink/rtnl/ifinfmsg.py | ||
| 17 | @@ -1,5 +1,5 @@ | ||
| 18 | import os | ||
| 19 | -import json | ||
| 20 | +import simplejson as json | ||
| 21 | import errno | ||
| 22 | import select | ||
| 23 | import struct | ||
| 24 | -- | ||
| 25 | 2.1.4 | ||
| 26 | |||
