def iter_texts_from_json_bz2(loc):
 with bz2.BZ2File(loc) as file_:
  for (i, line) in enumerate(file_):
   (yield ujson.loads(line)[u'body'])

def iter_texts_from_json_bz2 ( loc ) : with bz2 . BZ2File ( loc ) as file_ : for ( i , line ) in enumerate ( file_ ) : ( yield ujson . loads ( line ) [ u'body' ] )
iterator of unicode strings .