diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-02-26 16:48:44 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-02-26 16:48:44 (GMT) |
commit | 6f21b8133cb583901810853b478a51fe6aaea311 (patch) | |
tree | 9fd37ab41f71f5c81df044f2e60f81be3e88d5eb /pysamples/speak.py | |
parent | 2267a2997a2e03b5a2ff7830ec22b02ae57875e6 (diff) |
pep8 cleanup
Diffstat (limited to 'pysamples/speak.py')
-rw-r--r-- | pysamples/speak.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pysamples/speak.py b/pysamples/speak.py index 594c296..666fc6b 100644 --- a/pysamples/speak.py +++ b/pysamples/speak.py @@ -22,7 +22,8 @@ # This procedure is invoked when the user-definable block on the "extras" # palette is selected. -def myblock(lc, x): + +def myblock(lc, text): ########################################################################### # @@ -34,8 +35,7 @@ def myblock(lc, x): # Turtle Art numbers are passed as float, # but they may be integer values. - if type(x) == float and int(x) == x: - x = int(x) - - os.system('espeak "%s" --stdout | aplay' % (x)) + if type(text) == float and int(text) == text: + text = int(text) + os.system('espeak "%s" --stdout | aplay' % (text)) |