def _readNumber(self):
        isfloat = False
        result = self._next()
        peek = self._peek()
        while peek is not None and (peek.isdigit() or peek == "."):
            isfloat = isfloat or peek == "."
            result = result + self._next()
            peek = self._peek()
        try:
            if isfloat:
                return float(result)
            else:
                return int(result)
        except __HOLE__:
            raise ReadException, "Not a valid JSON number: '%s'" % result
dataset/ETHPy150Open gashero/talklog/android_sms/json.py/JsonReader._readNumber