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?)
When reading an RDB file I noticed that the
zadd
callback is given afloat
(for score) when using Python 2, but abytes
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?)