Remove unused imports from netconf_get (#61265)
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
2ce091cc86
commit
9d4dcc7506
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue