script/lib/iri_tweet/utils.py
changeset 24 71a4f21bc6fc
parent 21 8003bcd8d9a2
child 32 c924e143576f
equal deleted inserted replaced
23:2b17b26ca153 24:71a4f21bc6fc
    87             self.json_dict = anyjson.deserialize(json_txt)
    87             self.json_dict = anyjson.deserialize(json_txt)
    88         else:
    88         else:
    89             self.json_dict = json_dict
    89             self.json_dict = json_dict
    90         
    90         
    91         if not json_txt:
    91         if not json_txt:
    92             self.json_txt = json.serialize(json_dict)
    92             self.json_txt = anyjson.serialize(json_dict)
    93         else:
    93         else:
    94             self.json_txt = json_txt
    94             self.json_txt = json_txt
    95         
    95         
    96         if "id" not in self.json_dict:
    96         if "id" not in self.json_dict:
    97             raise TwitterProcessorException("No id in json")
    97             raise TwitterProcessorException("No id in json")