Skip to content

Commit

Permalink
changed dict.iteritems() to dict.items() api to make it compatible wi…
Browse files Browse the repository at this point in the history
…th Python 3
  • Loading branch information
NirbhayK committed Jul 2, 2018
1 parent ac01381 commit 1cd7940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler/crawling/distributed_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def request_from_feed(self, item):
# extra check to add items to request
if 'headers' in item and item['headers'] is not None:
if isinstance(item['headers'], dict):
for key, value in item['headers'].iteritems():
for key, value in item['headers'].items():
req.headers[key] = value

if 'cookie' in item and item['cookie'] is not None:
Expand Down

0 comments on commit 1cd7940

Please sign in to comment.