I have a list like that
mylist
['\nms-0/0/0\n', '\nms-0/1/0\n', '\nms-0/2/0\n']
and I want to use every literal value of the list in a way that \n character is ignored:
Example:
for i in mylist:
flows.xpath("//service-sfw-flow-count[interface-name=i]/flow-count//text()")
the value of "i" is not \nms-0/0/0\n but ms-0/0/0 , so I wonder if there is an option to use the literal value of every element of the list.
I've tried repr(i), but I got extra characters
"'\\nms-0/0/0\\n'"
Any idea ?
Regards