From 09e4c0cd52771906bf56055286c0c7e3d75449cf Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 21 Mar 2010 12:49:15 +0000 Subject: fixed more type check bugs --- 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\ -- cgit v0.9.1