From 87b47c329bf60c336303f228e11ece571dbe91de Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 22 May 2013 21:48:47 +0000 Subject: pep8 and pyflakes cleanup --- (limited to 'pysamples/uturn.py') diff --git a/pysamples/uturn.py b/pysamples/uturn.py index 0b164a0..cdeb96d 100644 --- a/pysamples/uturn.py +++ b/pysamples/uturn.py @@ -27,9 +27,9 @@ def myblock(tw, arg): # Add its primitive to the LogoCode dictionary. tw.lc.def_prim('uturn', 0, - lambda self: primitive_dictionary['set']( - 'heading', tw.canvas.seth, tw.canvas.heading + 180)) + lambda self: primitive_dictionary['set'] + ('heading', tw.canvas.seth, tw.canvas.heading + 180)) # Regenerate the palette, which will now include the new block. tw.show_toolbar_palette(palette_name_to_index('turtle'), - regenerate=True) + regenerate=True) -- cgit v0.9.1