diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-05-22 22:21:48 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-05-22 22:21:48 (GMT) |
commit | f4feb5a9326978f490ccea2f5a324bb6e03cd71d (patch) | |
tree | d0c14a47937a90080e8a0fa5ba6b8f2b92198d0c /pysamples | |
parent | a341ffce3c3024f90c26159b4e253a2869b0b5d6 (diff) |
fix error introduced in pep8 cleanup
Diffstat (limited to 'pysamples')
-rw-r--r-- | pysamples/grecord.py | 2 | ||||
-rw-r--r-- | pysamples/load_block.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pysamples/grecord.py b/pysamples/grecord.py index 35c7418..a28b82c 100644 --- a/pysamples/grecord.py +++ b/pysamples/grecord.py @@ -204,7 +204,7 @@ def myblock(tw, arg): # Sometime we need to parse multiple arguments, e.g., save, savename save_name = '%s_%s' % (tw.activity.name, _('sound')) - if isinstance(arg) == list: + if isinstance(arg, list): cmd = arg[0].lower() if len(arg) > 1: save_name = str(arg[1]) diff --git a/pysamples/load_block.py b/pysamples/load_block.py index 26dc0b2..a4f680d 100644 --- a/pysamples/load_block.py +++ b/pysamples/load_block.py @@ -71,7 +71,7 @@ def myblock(tw, blkname): # Place the block at the active turtle (x, y) and move the turtle # into position to place the next block in the stack. x, y = tw.active_turtle.get_xy() - if isinstance(blkname) == list: + if isinstance(blkname, list): name = blkname[0] value = blkname[1:] dy = int(find_block(tw, name, x, y, value)) |