From 3d2bac8bf6d0c53f56e14cb2c15b0c695cf0a647 Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Thu, 7 Oct 2021 18:07:43 +0200 Subject: renderer: convert relative imports to absolute (#1052) Fixes the following pylint error: cloudinit/net/renderer.py:12: [E0611(no-name-in-module), ] No name 'generate_udev_rule' in module 'udev' Likely a false positive, but we don't really need to keep the imports relative, so let's convert them to absolute as a workaround. --- cloudinit/net/renderer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/net/renderer.py b/cloudinit/net/renderer.py index 27447bc2..54a83b51 100644 --- a/cloudinit/net/renderer.py +++ b/cloudinit/net/renderer.py @@ -8,8 +8,8 @@ import abc import io -from .network_state import parse_net_config_data -from .udev import generate_udev_rule +from cloudinit.net.network_state import parse_net_config_data +from cloudinit.net.udev import generate_udev_rule def filter_by_type(match_type): -- cgit v1.2.3