def parse(self, method, payload):
        try:
            json = self.json_lib.loads(payload)
        except Exception, e:
            raise TweepError(e % 'Failed to parse JSON payload: %s')

        needsCursors = method.parameters.has_key('cursor')
        if needsCursors and isinstance(json, dict) and 'previous_cursor' in json and 'next_cursor' in json:
            cursors = json['previous_cursor'], json['next_cursor']
            return json, cursors
        else:
            return json
dataset/ETHPy150Open sajao/CrisisLex/src-collect/tweepy1/parsers.py/JSONParser.parse/swapped operands of `%`