From ae24fd183ef5efd5a670a6bbe8b20505859f4d81 Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Fri, 13 Feb 2015 11:12:28 -0800 Subject: [PATCH] RST cleanups --- HISTORY.rst | 2 +- README.rst | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 60bf2eb..cdc0f91 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -7,7 +7,7 @@ History ++++++++++++++++++ * Added timed to expire feature to ``cached_property`` decorator. -* Changed ``del monopoly.boardwalk`` to ``del monopoly['boardwalk'] in order to support the new TTL feature. +* Changed ``del monopoly.boardwalk`` to ``del monopoly['boardwalk']`` in order to support the new TTL feature. 0.1.5 (2014-05-20) ++++++++++++++++++ diff --git a/README.rst b/README.rst index bbdb552..f63ecc3 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ cached-property .. image:: https://badge.fury.io/py/cached-property.png :target: http://badge.fury.io/py/cached-property - + .. image:: https://travis-ci.org/pydanny/cached-property.png?branch=master :target: https://travis-ci.org/pydanny/cached-property @@ -110,7 +110,7 @@ Timing out the cache Sometimes you want the price of things to reset after a time. .. code-block:: python - + import random from cached_property import cached_property @@ -121,6 +121,8 @@ Sometimes you want the price of things to reset after a time. # I dare the reader to implement a game using this method of 'rolling dice'. return random.randint(2,12) +Now use it: + .. code-block:: python >>> monopoly = Monopoly() -- 2.30.2