Skip to content

Commit e147c1a

Browse files
kajinamitsqla-tester
authored andcommitted
Drop workaround for python-bynary-memcached < 0.23
This removes the workaround for a very old bug, which was fixed in 0.23 (released in 2014). Closes: #253 Pull-request: #253 Pull-request-sha: a25018c Change-Id: I93e8a11765a1e2f2a41811f41ba8f2ca4da58694
1 parent 7fda91f commit e147c1a

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

dogpile/cache/backends/memcached.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -408,25 +408,8 @@ def _imports(self):
408408
global bmemcached
409409
import bmemcached
410410

411-
class RepairBMemcachedAPI(bmemcached.Client):
412-
"""Repairs BMemcached's non-standard method
413-
signatures, which was fixed in BMemcached
414-
ef206ed4473fec3b639e.
415-
416-
"""
417-
418-
def add(self, key, value, timeout=0):
419-
try:
420-
return super(RepairBMemcachedAPI, self).add(
421-
key, value, timeout
422-
)
423-
except ValueError:
424-
return False
425-
426-
self.Client = RepairBMemcachedAPI
427-
428411
def _create_client(self):
429-
return self.Client(
412+
return bmemcached.Client(
430413
self.url,
431414
username=self.username,
432415
password=self.password,

0 commit comments

Comments
 (0)