[fix] remove .encode for python3 compatibility

pull/1/head
jibe-b 7 years ago committed by Noémi Ványi
parent 5278fa666c
commit e391b2d970

@ -41,7 +41,7 @@ def request(query, params):
def response(resp):
results = []
search_results = html.fromstring(resp.text.encode('utf-8')).xpath('//entry')
search_results = html.fromstring(resp.text).xpath('//entry')
for entry in search_results:
title = entry.xpath('.//title')[0].text

Loading…
Cancel
Save