Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/talogo.py b/talogo.py
index 8c22ad2..eba6c3b 100644
--- a/talogo.py
+++ b/talogo.py
@@ -830,14 +830,8 @@ def status_print(lc,n):
elif type(n) == int:
showlabel(lc,n)
else:
- try:
- # show no decimals for ints
- if int(n) == float(n):
- showlabel(lc, int(n))
- else:
- showlabel(lc, int(float(n)*10)/10.)
- except:
- print "problem printing %s or type %s" % n, type(n)
+ # show no decimals for ints
+ showlabel(lc, int(float(n)*10)/10.)
def kbinput(lc):
if len(lc.tw.keypress) == 1: