We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6a7a49 + f34f9d2 commit e741b2aCopy full SHA for e741b2a
memcache.py
@@ -76,17 +76,6 @@ def useOldServerHashFunction():
76
serverHashFunction = binascii.crc32
77
78
from io import BytesIO
79
-if six.PY2:
80
- try:
81
- unicode
82
- except NameError:
83
- _has_unicode = False
84
- else:
85
- _has_unicode = True
86
-else:
87
88
-
89
-_str_cls = six.string_types
90
91
valid_key_chars_re = re.compile(b'[\x21-\x7e\x80-\xff]+$')
92
tests/test_memcache.py
@@ -6,17 +6,6 @@
6
7
from memcache import Client, SERVER_MAX_KEY_LENGTH, SERVER_MAX_VALUE_LENGTH
8
9
-try:
10
- _str_cls = basestring
11
-except NameError:
12
- _str_cls = str
13
14
15
-def to_s(val):
16
- if not isinstance(val, _str_cls):
17
- return "%s (%s)" % (val, type(val))
18
- return "%s" % val
19
20
21
class FooStruct(object):
22
0 commit comments