From c0e138f0e4d5cef86f6290e9a10d36a7efa695a5 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 20 Oct 2010 21:45:10 +0000 Subject: shorter method name --- (limited to 'TurtleArt/tablock.py') 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: -- cgit v0.9.1