From 03b0254e575c2ac9cd8a3f7076c97ce9e4e93989 Mon Sep 17 00:00:00 2001 From: blob8108 Date: Mon, 6 Jan 2014 11:33:55 +0000 Subject: Whoops, blocking reporters aren't a thing. --- further_examples.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'further_examples.py') 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"]) -- cgit v1.3.1