summaryrefslogtreecommitdiff
path: root/python/netlink/util.py
diff options
context:
space:
mode:
authorКоренберг Марк (ноутбук дома) <socketpair@gmail.com>2012-06-04 22:54:16 +0600
committerКоренберг Марк (ноутбук дома) <socketpair@gmail.com>2012-06-08 22:26:35 +0600
commit4be1ae2ae22e100e6bbc4bd127af49296efbd763 (patch)
tree1f5238a7dc064f0bdd77afa2dfb10b4ff8885780 /python/netlink/util.py
parentf55ea7ff9d318be938be3f3ae4f331ba5c7dc150 (diff)
downloadlibnl-4be1ae2ae22e100e6bbc4bd127af49296efbd763.tar.gz
Introduce Python's absolute_imports
Helps greatly when porting to Python 3
Diffstat (limited to 'python/netlink/util.py')
-rw-r--r--python/netlink/util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/netlink/util.py b/python/netlink/util.py
index 191c531..0a73db4 100644
--- a/python/netlink/util.py
+++ b/python/netlink/util.py
@@ -8,8 +8,10 @@
"""
-import netlink.core as netlink
-import netlink.capi as capi
+from __future__ import absolute_import
+
+from . import core as netlink
+from . import capi as capi
from string import Formatter
__version__ = "1.0"