From baee9468029199479156977182149e0744a35cf2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Feb 2015 23:22:50 +0300 Subject: hercules: remove .gat from converted maps. --- hercules/code/stringutils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hercules/code/stringutils.py') diff --git a/hercules/code/stringutils.py b/hercules/code/stringutils.py index fccf403..a442ae7 100644 --- a/hercules/code/stringutils.py +++ b/hercules/code/stringutils.py @@ -40,3 +40,8 @@ def escapeSqlStr(data): data = data.replace("{", "\\{"); data = data.replace("}", "\\}"); return data + +def removeGat(data): + if len(data) >= 4 and data[-4:] == ".gat": + data = data[:-4] + return data -- cgit v1.2.3-70-g09d2