change variable n to nel to conform to '[a-z_][a-z0-9_]{2,30}$' pattern

from codacy report

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
EstherLerouzic
2019-08-19 13:40:57 +01:00
parent 6a7a04ebb1
commit 424e5a4786

View File

@@ -126,20 +126,20 @@ class Result_element(Element):
else:
index = 0
pro_list = []
for n in self.computed_path:
for nel in self.computed_path:
temp = {
'path-route-object': {
'index': index,
'num-unnum-hop': {
'node-id': n.uid,
'link-tp-id': n.uid,
'node-id': nel.uid,
'link-tp-id': nel.uid,
# TODO change index in order to insert transponder attribute
}
}
}
pro_list.append(temp)
index += 1
if isinstance(n, Transceiver):
if isinstance(nel, Transceiver):
temp = {
'path-route-object': {
'index': index,