Cleanup example.
authorIonel Cristian Mărieș <contact@ionelmc.ro>
Thu, 1 Oct 2015 12:55:53 +0000 (15:55 +0300)
committerIonel Cristian Mărieș <contact@ionelmc.ro>
Thu, 1 Oct 2015 12:55:53 +0000 (15:55 +0300)
README.rst

index b4856c989a68ae6d41f7cf3b1d4eb2a064b9d30b..73fcd0bbbb9a280646b6898659d7b8fb2ab90405 100644 (file)
@@ -109,15 +109,12 @@ unfortunately causes problems with the standard ``cached_property``. In this cas
 
 .. code-block:: python
 
-    import threading
-
     from cached_property import threaded_cached_property
 
     class Monopoly(object):
 
         def __init__(self):
             self.boardwalk_price = 500
-            self.lock = threading.Lock()
 
         @threaded_cached_property
         def boardwalk(self):