diff options
author | wushin <pasekei@gmail.com> | 2015-03-02 01:18:27 -0600 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2015-03-02 01:18:27 -0600 |
commit | 357ae6673aae16f4f8bbddf9c70d0f6c3fc389db (patch) | |
tree | facbe99cec567f5594684f1dac3165492bf0e015 /hercules | |
parent | 10c441c0a335a6d8cab46fcd851054b0cbe19e98 (diff) | |
download | evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.tar.gz evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.tar.bz2 evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.tar.xz evol-tools-357ae6673aae16f4f8bbddf9c70d0f6c3fc389db.zip |
hercules converter: stringutils: add escape case for \
Diffstat (limited to 'hercules')
-rw-r--r-- | hercules/code/stringutils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hercules/code/stringutils.py b/hercules/code/stringutils.py index a442ae7..9dcbff8 100644 --- a/hercules/code/stringutils.py +++ b/hercules/code/stringutils.py @@ -35,6 +35,7 @@ def stripNewLine(data): return data def escapeSqlStr(data): + data = data.replace("\\", "\\\\"); data = data.replace("'", "\\'"); data = data.replace("`", "\\`"); data = data.replace("{", "\\{"); |