We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b13d6fc commit f34f9d2Copy full SHA for f34f9d2
memcache.py
@@ -78,17 +78,6 @@ def useOldServerHashFunction():
78
serverHashFunction = binascii.crc32
79
80
from io import BytesIO
81
-if six.PY2:
82
- try:
83
- unicode
84
- except NameError:
85
- _has_unicode = False
86
- else:
87
- _has_unicode = True
88
-else:
89
90
-
91
-_str_cls = six.string_types
92
93
valid_key_chars_re = re.compile(b'[\x21-\x7e\x80-\xff]+$')
94
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