summaryrefslogtreecommitdiff
path: root/hercules/code/stringutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/code/stringutils.py')
-rw-r--r--hercules/code/stringutils.py5
1 files changed, 5 insertions, 0 deletions
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