sripathikrishnan/redis-rdb-tools — pull request #12 by cgordon (2012-07-31 19:56:30+00:00)
Title: Handling long integers in the JSON callback.

One of our Redis databases has integers that use the "long" type in Python. That caused the _encode function in callbacks.py to call _encode_basestring_ascii on a long object, which fails. I just modified the initial conditional to look for longs. The only other Python numeric type of which I'm aware is "complex", which I don't think applies to Redis, so this should be complete.