From 6f21b8133cb583901810853b478a51fe6aaea311 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 26 Feb 2011 16:48:44 +0000 Subject: pep8 cleanup --- (limited to 'pysamples/speak.py') 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)) -- cgit v0.9.1