Skip to content

Commit

Permalink
fixup! processor: Integrate web/rule robots handling.
Browse files Browse the repository at this point in the history
Fix the return syntax for Py 3.2 compatiblity.
  • Loading branch information
chfoo committed Oct 29, 2014
1 parent f8f27ca commit acd60dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wpull/processor/web.py
Expand Up @@ -241,13 +241,13 @@ def _process_robots(self):
_logger.debug('Sleeping {0}.'.format(wait_time))
yield From(trollius.sleep(wait_time))

return False
raise Return(False)
else:
if not verdict:
self._url_item.skip()
return False
raise Return(False)

return True
raise Return(True)

@trollius.coroutine
def _process_loop(self):
Expand Down

0 comments on commit acd60dc

Please sign in to comment.