Skip to content

Commit 3844e01

Browse files
author
Shakeel Mohamed
committed
inline XML text chunk concatenation
1 parent f046023 commit 3844e01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

splunklib/results.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ def _parse_results(self, stream):
246246
elem.clear()
247247

248248
elif elem.tag in ('text', 'v') and event == 'end':
249-
text = ""
250-
for text_chunk in elem.itertext():
251-
text += text_chunk
249+
text = "".join(elem.itertext())
252250
values.append(text.encode('utf8'))
253251
elem.clear()
254252

0 commit comments

Comments
 (0)