diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-03-21 12:45:17 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-03-21 12:45:17 (GMT) |
commit | 11b8cc8bd2eaa2392c16c1c0ea1dee3bbda50c12 (patch) | |
tree | 5d3d053549306accbe8c74c45c9f8d41e7e58be8 /talogo.py | |
parent | 7a2e836467d87362c3e025faaf6fea2628dc3924 (diff) |
fixed type check bug
Diffstat (limited to 'talogo.py')
-rw-r--r-- | talogo.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -36,7 +36,8 @@ from taconstants import PALETTES, PALETTE_NAMES, TAB_LAYER from tagplay import play_audio, play_movie_from_file, stop_media from tajail import myfunc, myfunc_import from tautils import get_pixbuf_from_journal, movie_media_type, convert, \ - audio_media_type, text_media_type, round_int, chr_to_ord, strtype + audio_media_type, text_media_type, round_int, chr_to_ord, \ + strtype from gettext import gettext as _ class noKeyError(UserDict): @@ -978,10 +979,11 @@ class LogoCode: if x is None: self.boxes[name] = val else: - if type(convert(x, float, False)) == type(float): + if type(convert(x, float, False)) == float: if int(float(x)) == x: x = int(x) self.boxes[name+str(x)] = val + print self.boxes def prim_push(self, val): """ Push value onto FILO """ |