summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-12-07 21:04:00 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-12-07 21:04:00 -0600
commit40bef71eb9d32c786b333bd75217a4367da3dd01 (patch)
tree53e4e31f4f9d066993144770ffdfcb5ebe8a1d80
parent8f452f17ebca8d1f7684fe982dbb23a955905314 (diff)
downloadnetconfapk-40bef71eb9d32c786b333bd75217a4367da3dd01.tar.gz
netconfapk-40bef71eb9d32c786b333bd75217a4367da3dd01.tar.bz2
netconfapk-40bef71eb9d32c786b333bd75217a4367da3dd01.tar.xz
netconfapk-40bef71eb9d32c786b333bd75217a4367da3dd01.zip
util: PyLint fixes
-rw-r--r--ncserver/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ncserver/util.py b/ncserver/util.py
index 209d4d9..bf47f56 100644
--- a/ncserver/util.py
+++ b/ncserver/util.py
@@ -11,7 +11,7 @@ SPDX-License-Identifier: NCSA
"""
-from lxml.etree import QName
+from lxml.etree import QName # pylint: disable=E0611
from netconf import error
from ncserver.base.modman import MODMAN
@@ -32,5 +32,6 @@ def maybe_raise_on_invalid_node(xmlns, rpc, node):
nodens = QName(node).namespace
if nodens == xmlns:
raise error.UnknownElementAppError(rpc, node)
+ # pylint: disable=W0212
if nodens not in (mod.M_PREFIX for mod in MODMAN._augments_for_ns(xmlns)):
raise error.UnknownNamespaceAppError(rpc, node, None)