Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-03-21 12:49:15 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-03-21 12:49:15 (GMT)
commit09e4c0cd52771906bf56055286c0c7e3d75449cf (patch)
tree465fd2d3d2f4950d41334b7f5bd9c5b2f2b50b7a
parent11b8cc8bd2eaa2392c16c1c0ea1dee3bbda50c12 (diff)
fixed more type check bugs
-rw-r--r--talogo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/talogo.py b/talogo.py
index 53098b4..5858735 100644
--- a/talogo.py
+++ b/talogo.py
@@ -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\