diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-03-21 12:49:15 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-03-21 12:49:15 (GMT) |
commit | 09e4c0cd52771906bf56055286c0c7e3d75449cf (patch) | |
tree | 465fd2d3d2f4950d41334b7f5bd9c5b2f2b50b7a | |
parent | 11b8cc8bd2eaa2392c16c1c0ea1dee3bbda50c12 (diff) |
fixed more type check bugs
-rw-r--r-- | talogo.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -438,7 +438,7 @@ class LogoCode: if b.connections[1] is not None: code = self.blocks_to_code(b) x = b.connections[1].values[0] - if type(convert(x, float, False)) == type(float): + if type(convert(x, float, False)) == float: if int(float(x)) == x: x = int(x) self.stacks['stack3'+str(x)] = self.readline(code) @@ -862,7 +862,7 @@ class LogoCode: def prim_stack(self, x): """ Process a named stack """ - if type(convert(x, float, False)) == type(float): + if type(convert(x, float, False)) == float: if int(float(x)) == x: x = int(x) if (not self.stacks.has_key('stack3'+str(x))) or\ |