Commits

Mike Bayer committed 6c2c47a

no, ad hoc

  • Participants
  • Parent commits 57de1df

Comments (0)

Files changed (1)

docs/build/usage.rst

         def decorate(fn):
             # ... gen_cached() from the previous example goes here
 
-            # create an ad-hoc FileLock
-            mutex = lockfile.FileLock(lock_path)
+            def invoke():
+                # create an ad-hoc FileLock
+                mutex = lockfile.FileLock(lock_path)
 
-            def invoke():
                 with Lock(mutex, gen_cached, get_value, expiration_time) as value:
                     return value
             return invoke