summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorblob8108 <spaaam42@gmail.com>2014-01-05 17:06:21 +0000
committerblob8108 <spaaam42@gmail.com>2014-01-05 17:06:21 +0000
commit457674c8dc0a070d63e7992fb1b69694418e6f3a (patch)
tree8c7f1a4c3b9a75aaec5bcf456589792cf2526ce9 /example.py
parentc2065edb2845a3cfb40685cced16f003e694f10e (diff)
downloadblockext-457674c8dc0a070d63e7992fb1b69694418e6f3a.tar.gz
blockext-457674c8dc0a070d63e7992fb1b69694418e6f3a.zip
Fix blocking reporters
Diffstat (limited to 'example.py')
-rw-r--r--example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.py b/example.py
index 07838cf..2a6adc1 100644
--- a/example.py
+++ b/example.py
@@ -8,14 +8,14 @@ from blockext import *
def not_(value):
return not value
-@command("say %s for %n secs")
+@command("say %s for %n secs", blocking=True)
def say_for_secs(text="Hello", duration=5):
import time
print(text)
time.sleep(duration)
-@command("play note %n", blocking=True)
+@command("play note %n")
def play_note(note):
print("DING {note}".format(note=note))
time.sleep(2)