blob: 65f38814c36ddd7f9f9104c254e5da1f36d275d4 [file] [log] [blame]
Patrick Williamsb542dec2023-06-09 01:26:37 -05001From afb778669efbc658a29e6bdb1c4834fee42931aa Mon Sep 17 00:00:00 2001
2From: Robert Grant <rgrant@mdi.us.com>
3Date: Wed, 10 Sep 2014 14:56:33 -0400
4Subject: [PATCH] Fixed relative imports
5
6Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
7
8---
Andrew Geissler220dafd2023-10-04 10:18:08 -05009Upstream-Status: Backport [https://github.com/rlisagor/pynetlinux/commit/afb778669efbc658a29e6bdb1c4834fee42931aa]
Patrick Williamsb542dec2023-06-09 01:26:37 -050010
11 pynetlinux/__init__.py | 8 ++++----
12 pynetlinux/brctl.py | 2 +-
13 pynetlinux/tap.py | 2 +-
14 3 files changed, 6 insertions(+), 6 deletions(-)
15
16diff --git a/pynetlinux/__init__.py b/pynetlinux/__init__.py
17index 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
32diff --git a/pynetlinux/brctl.py b/pynetlinux/brctl.py
33index 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
45diff --git a/pynetlinux/tap.py b/pynetlinux/tap.py
46index 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--
592.39.2
60