diff options
author | Alex Tomkins <tomkins@darkzone.net> | 2016-11-17 10:48:16 +0000 |
---|---|---|
committer | Alex Tomkins <tomkins@darkzone.net> | 2016-12-04 23:15:37 +0000 |
commit | 4621b2e9be6b0202640cf7b3c5acf628ce4075fc (patch) | |
tree | a6c7ebc3a2557c6fa201e023ff8c9390dec09df3 | |
parent | f5e3538b3a02c9ae099ebc372cd568a8fe7e99a7 (diff) | |
download | pymemcache-4621b2e9be6b0202640cf7b3c5acf628ce4075fc.tar.gz |
Switch to is bytes for bytes comparision
Works across all versions of Python, no need to use six for it
-rw-r--r-- | pymemcache/serde.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pymemcache/serde.py b/pymemcache/serde.py index 03ba8cc..2810bad 100644 --- a/pymemcache/serde.py +++ b/pymemcache/serde.py @@ -36,7 +36,7 @@ def python_memcache_serializer(key, value): # Check against exact types so that subclasses of native types will be # restored as their native type - if value_type is six.binary_type: + if value_type is bytes: pass elif value_type is six.text_type: |