From 9d4dcc75060b670af8044576192fe58f3c397f5d Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 24 Aug 2019 19:47:56 -0400 Subject: [PATCH] Remove unused imports from netconf_get (#61265) Signed-off-by: Paul Belanger --- lib/ansible/modules/network/netconf/netconf_get.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/netconf/netconf_get.py b/lib/ansible/modules/network/netconf/netconf_get.py index 68bf1b3aeb0..6a2857b4482 100644 --- a/lib/ansible/modules/network/netconf/netconf_get.py +++ b/lib/ansible/modules/network/netconf/netconf_get.py @@ -148,16 +148,16 @@ output: import sys try: - from lxml.etree import Element, SubElement, tostring, fromstring, XMLSyntaxError + from lxml.etree import tostring, fromstring, XMLSyntaxError except ImportError: - from xml.etree.ElementTree import Element, SubElement, tostring, fromstring + from xml.etree.ElementTree import tostring, fromstring if sys.version_info < (2, 7): from xml.parsers.expat import ExpatError as XMLSyntaxError else: from xml.etree.ElementTree import ParseError as XMLSyntaxError from ansible.module_utils.basic import AnsibleModule -from ansible.module_utils.network.netconf.netconf import get_capabilities, locked_config, get_config, get +from ansible.module_utils.network.netconf.netconf import get_capabilities, get_config, get from ansible.module_utils.network.common.netconf import remove_namespaces from ansible.module_utils._text import to_text