diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-05-31 10:23:26 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-06-06 23:07:59 -0700 |
| commit | 1a3d3d13648012829c4e76e11095696f91b58ca1 (patch) | |
| tree | 5977964b565d73a2f5561a90670dca9508481c65 /meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch | |
| parent | b06204baf3bc4883c67311dce1d2ff7f72f393c0 (diff) | |
| download | meta-openembedded-1a3d3d13648012829c4e76e11095696f91b58ca1.tar.gz | |
python3-pynetlinux: fix relative imports
Pull in a patch from upstream that addresses an issue with relative
imports.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch b/meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch new file mode 100644 index 0000000000..9b5d9d6364 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pynetlinux/0002-Fixed-relative-imports.patch | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | From afb778669efbc658a29e6bdb1c4834fee42931aa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Grant <rgrant@mdi.us.com> | ||
| 3 | Date: Wed, 10 Sep 2014 14:56:33 -0400 | ||
| 4 | Subject: [PATCH] Fixed relative imports | ||
| 5 | |||
| 6 | Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | ||
| 7 | |||
| 8 | --- | ||
| 9 | Upstream-Status: Accepted | ||
| 10 | |||
| 11 | pynetlinux/__init__.py | 8 ++++---- | ||
| 12 | pynetlinux/brctl.py | 2 +- | ||
| 13 | pynetlinux/tap.py | 2 +- | ||
| 14 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/pynetlinux/__init__.py b/pynetlinux/__init__.py | ||
| 17 | index dbbf392..b6e1b8e 100644 | ||
| 18 | --- a/pynetlinux/__init__.py | ||
| 19 | +++ b/pynetlinux/__init__.py | ||
| 20 | @@ -2,7 +2,7 @@ | ||
| 21 | # import pylinux | ||
| 22 | # does a reasonable thing. | ||
| 23 | |||
| 24 | -import brctl | ||
| 25 | -import ifconfig | ||
| 26 | -import tap | ||
| 27 | -import route | ||
| 28 | +from . import brctl | ||
| 29 | +from . import ifconfig | ||
| 30 | +from . import tap | ||
| 31 | +from . import route | ||
| 32 | diff --git a/pynetlinux/brctl.py b/pynetlinux/brctl.py | ||
| 33 | index f54d176..a8b926e 100644 | ||
| 34 | --- a/pynetlinux/brctl.py | ||
| 35 | +++ b/pynetlinux/brctl.py | ||
| 36 | @@ -3,7 +3,7 @@ import fcntl | ||
| 37 | import os | ||
| 38 | import struct | ||
| 39 | |||
| 40 | -import ifconfig | ||
| 41 | +from . import ifconfig | ||
| 42 | |||
| 43 | SYSFS_NET_PATH = "/sys/class/net" | ||
| 44 | |||
| 45 | diff --git a/pynetlinux/tap.py b/pynetlinux/tap.py | ||
| 46 | index 0a0d59c..3f8ad3a 100644 | ||
| 47 | --- a/pynetlinux/tap.py | ||
| 48 | +++ b/pynetlinux/tap.py | ||
| 49 | @@ -2,7 +2,7 @@ import fcntl | ||
| 50 | import os | ||
| 51 | import struct | ||
| 52 | |||
| 53 | -import ifconfig | ||
| 54 | +from . import ifconfig | ||
| 55 | |||
| 56 | # From linux/if_tun.h | ||
| 57 | |||
| 58 | -- | ||
| 59 | 2.39.2 | ||
| 60 | |||
