Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tablock.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-10-20 21:45:10 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-10-20 21:45:10 (GMT)
commitc0e138f0e4d5cef86f6290e9a10d36a7efa695a5 (patch)
treec10a01a9f271f81aa8ce396a78842875e7d404c3 /TurtleArt/tablock.py
parentbc3233639375bb4a4005382e94acc1135a41bcc4 (diff)
shorter method name
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r--TurtleArt/tablock.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index 5f61b5e..0ad00fa 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -113,13 +113,7 @@ class Blocks:
i += 1
return None
- def get_block_of_same_type_and_name(self, type, name):
- for block in self.list:
- if block.type == type and block.name == name:
- return block
- return None
-
- def get_all_blocks_of_same_type_and_name(self, type, name):
+ def get_similar_blocks(self, type, name):
block_list = []
for block in self.list:
if block.type == type and block.name == name: