Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py2
-rw-r--r--pysamples/grecord.py2
-rw-r--r--pysamples/load_block.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
index c2d0a8c..36d98e2 100644
--- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py
+++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
@@ -1581,7 +1581,7 @@ bullets'))
# into position to place the next block in the stack.
# TODO: Add expandable argument
x, y = self.tw.active_turtle.get_xy()
- if isinstance(blkname) == list:
+ if isinstance(blkname, list):
name = blkname[0]
if len(blkname) > 1:
value = blkname[1:]
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))