Skip to content

Commit

Permalink
cloudsearch: Use extend instead of append as we're passing a list
Browse files Browse the repository at this point in the history
  • Loading branch information
kjoconnor committed Jan 4, 2016
1 parent 102a7e3 commit 400a38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/lib/providers/search/cloudsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def chunk_xml(xml, depth=0):
right_half = etree.Element("batch")
# etree magic simultaneously removes the elements from one tree
# when they are appended to a different tree
right_half.append(xml[half:])
right_half.extend(xml[half:])
for chunk in chunk_xml(left_half, depth=depth):
yield chunk
for chunk in chunk_xml(right_half, depth=depth):
Expand Down

0 comments on commit 400a38e

Please sign in to comment.