sripathikrishnan / redis-rdb-tools

Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON
https://rdbtools.com
MIT License
5.09k stars 743 forks source link

Ordered-set scores not converted to float in Python 3 #116

Open bmerry opened 6 years ago

bmerry commented 6 years ago

When reading an RDB file I noticed that the zadd callback is given a float (for score) when using Python 2, but a bytes when using Python 3.

I suspect the problem is at this line, which for some reason only casts to float if the value read from file is a str (which it presumably will always be in Python 2, and will never be in Python 3?)