From 3244f8d375400b483f23b5d7b83857be00c23943 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 22 Jul 2009 20:34:32 +0000 Subject: fixed unicode/int comp --- diff --git a/talogo.py b/talogo.py index e955adf..145d3aa 100644 --- a/talogo.py +++ b/talogo.py @@ -339,11 +339,11 @@ def taequal(x,y): try: return float(x)==float(y) except: - if type(x) == str: + if type(x) == str or type(x) == unicode: xx = ord(x[0]) else: xx = x - if type(y) == str: + if type(y) == str or type(y) == unicode: yy = ord(y[0]) else: yy = y -- cgit v0.9.1