Skip to content

Commit daccf8c

Browse files
committed
Fix typo in comment ("if if")
1 parent abf1ff9 commit daccf8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/task-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The cache key expires after some time in case something unexpected happens
4545
feed_url_digest = md5(feed_url).hexdigest()
4646
lock_id = '{0}-lock-{1}'.format(self.name, feed_url_hexdigest)
4747
48-
# cache.add fails if if the key already exists
48+
# cache.add fails if the key already exists
4949
acquire_lock = lambda: cache.add(lock_id, 'true', LOCK_EXPIRE)
5050
# memcache delete is very slow, but we have to use it to take
5151
# advantage of using add() for atomic locking

0 commit comments

Comments
 (0)