Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class GeoParserPass(Pass):
  2. def run_with_processor(self, books, reporter, processor):
  3. def _parse(book, para, chart_corr, notice):
  4. notice.geos = [processor.parse_meta_geo(geo) for geo in notice.ast_object.action_geo]
  5. base_passes.for_each(_parse, books.walk("books").walk("paras").walk("chart_corrections").walk("notices")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement