We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9613e43 commit e10e50dCopy full SHA for e10e50d
splunklib/data.py
@@ -79,9 +79,8 @@ def load(text, match=None):
79
}
80
81
# Convert to unicode encoding in only python 2 for xml parser
82
- if sys.version_info < (3, 0, 0):
83
- if isinstance(text, unicode):
84
- text = text.encode('utf-8')
+ if(sys.version_info < (3, 0, 0) and isinstance(text, unicode)):
+ text = text.encode('utf-8')
85
86
root = XML(text)
87
items = [root] if match is None else root.findall(match)
0 commit comments