summaryrefslogtreecommitdiff
path: root/hercules/code/stringutils.py
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-06-19 09:34:16 +0200
committerjak1 <jak1@themanaworld.org>2022-06-19 09:34:16 +0200
commit38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch)
tree6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /hercules/code/stringutils.py
parent9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff)
downloadtools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.gz
tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.bz2
tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.xz
tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.zip
updated all leftover scripts to py3
Diffstat (limited to 'hercules/code/stringutils.py')
-rw-r--r--hercules/code/stringutils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/hercules/code/stringutils.py b/hercules/code/stringutils.py
index 73db611..986792d 100644
--- a/hercules/code/stringutils.py
+++ b/hercules/code/stringutils.py
@@ -24,9 +24,9 @@ def stripQuotes2(data):
return data
def strToXml(data):
- data = data.replace("&", "&amp;");
- data = data.replace("<", "&lt;");
- data = data.replace(">", "&gt;");
+ data = data.replace("&", "&amp;")
+ data = data.replace("<", "&lt;")
+ data = data.replace(">", "&gt;")
return data
def stripNewLine(data):
@@ -49,11 +49,11 @@ def stripWindows(data):
return data
def escapeSqlStr(data):
- data = data.replace("\\", "\\\\");
- data = data.replace("'", "\\'");
- data = data.replace("`", "\\`");
- data = data.replace("{", "\\{");
- data = data.replace("}", "\\}");
+ data = data.replace("\\", "\\\\")
+ data = data.replace("'", "\\'")
+ data = data.replace("`", "\\`")
+ data = data.replace("{", "\\{")
+ data = data.replace("}", "\\}")
return data
def removeGat(data):