From a554ab8d80ab114e8ee7ffbf57dfd21aba68a7e6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 14 Jun 2003 17:14:46 +0000 Subject: [PATCH] Fixed typo svn: r1742 --- gramps2/src/Utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps2/src/Utils.py b/gramps2/src/Utils.py index d7bdbeb96..6b554065f 100644 --- a/gramps2/src/Utils.py +++ b/gramps2/src/Utils.py @@ -527,9 +527,9 @@ def gfloat(val): return float(val) except: try: - return float(val.subst('.',',')) + return float(val.replace('.',',')) except: - return float(val.subst(',','.')) + return float(val.replace(',','.')) return 0.0 #-------------------------------------------------------------------------