summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblob8108 <blob8108@gmail.com>2014-01-06 11:33:55 +0000
committerblob8108 <blob8108@gmail.com>2014-01-06 11:33:55 +0000
commit03b0254e575c2ac9cd8a3f7076c97ce9e4e93989 (patch)
treea6ea7251d0a3d6181395238f91e9b449bb68bb52
parentbaea1c4a1be7bbc1a66e3ab5d652819576f7183a (diff)
downloadblockext-03b0254e575c2ac9cd8a3f7076c97ce9e4e93989.tar.gz
blockext-03b0254e575c2ac9cd8a3f7076c97ce9e4e93989.zip
Whoops, blocking reporters aren't a thing.
-rw-r--r--further_examples.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/further_examples.py b/further_examples.py
index 35b2c9e..cfacd07 100644
--- a/further_examples.py
+++ b/further_examples.py
@@ -18,11 +18,11 @@ def set_light(boolean_value):
menu("city", ["Boston", "Bournemouth", "Barcelona", "Belgium"])
-"""@reporter("lookup weather in %m.city", blocking=True)
+@reporter("lookup weather in %m.city")
def weather(city="Boston"):
import time
return "{weather} in {city}".format(city=city,
- weather=["sunny", "cloudy", "rainy", "snowy"][int(time.time() % 4)])"""
+ weather=["sunny", "cloudy", "rainy", "snowy"][int(time.time() % 4)])
menu("motor", [1, 2, 3, "A", "B", "C"])