Procházet zdrojové kódy

Merge pull request #2392 from Ch00k/master

Fix variable name in Task Cookbook tutorial
Dmitry Malinovsky před 10 roky
rodič
revize
01dd9f842a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      docs/tutorials/task-cookbook.rst

+ 1 - 1
docs/tutorials/task-cookbook.rst

@@ -42,7 +42,7 @@ The cache key expires after some time in case something unexpected happens
     def import_feed(self, feed_url):
         # The cache key consists of the task name and the MD5 digest
         # of the feed URL.
-        feed_url_digest = md5(feed_url).hexdigest()
+        feed_url_hexdigest = md5(feed_url).hexdigest()
         lock_id = '{0}-lock-{1}'.format(self.name, feed_url_hexdigest)
 
         # cache.add fails if the key already exists