| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The Token class was needed when supporting Python 2.6. Now that we've
dropped support for 2.6, we don't need it anymore.
Fixes #1066
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All input sent to Redis is coerced into bytes. This includes key names and
values. Prior to this change, redis-py made an effort to cooerce all input
into strings by calling str() (Python 3) or unicode() (Python 2). While this
works for a handful of types like ints, longs and floats, it fails for other
types like bools ('True' or 'False'), None ('None') and many user defined
types.
Starting with redis-py version 3.0, sending input of any other type is
considered an error an a DataError exception will be raised.
Fixes #471
Fixes #472
Fixes #321
Fixes #190
|
|
|
|
| |
Remove workaround for handling unicode with older Pythons.
|
|
|
|
| |
All supported Python versions support the with statement.
|
| |
|
|
|
|
|
|
| |
Fixes warning output:
DeprecationWarning: "charset" is deprecated. Use "encoding" instead
|
|
|
|
| |
characters in its printable representation
|
|
|
|
|
|
|
|
|
|
|
|
| |
previously all pieces of a command, including the command name and literal
options to it (such as "WITHSCORES" on ZSET commands) would get encoded.
this works fine on utf-8, but other encodings like utf-16 break.
a new Token class has been introduced that command names and literal options
get wrapped. the encoder falls back to the latin-1 encoding for these
literals as they are all ascii.
fixes #430
|
| |
|
| |
|
|
|