summaryrefslogtreecommitdiff
path: root/further_examples.py
diff options
context:
space:
mode:
Diffstat (limited to 'further_examples.py')
-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"])