From: Romain Rinie Date: Tue, 7 Aug 2018 07:54:55 +0000 (+0200) Subject: Escape and unescape character @ X-Git-Tag: v2.0.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ac21557f5adb5063ddf315905e8476cf8f67eb;p=thirdparty%2Fpython-fints.git Escape and unescape character @ --- diff --git a/fints/utils.py b/fints/utils.py index e3b1ff0..c6fce95 100644 --- a/fints/utils.py +++ b/fints/utils.py @@ -25,11 +25,11 @@ def fints_escape(content): Ref: https://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Formals_2017-05-11_final_version.pdf Section H.1.1 """ - return content.replace('?', '??').replace('+', '?+').replace(':', '?:').replace("'", "?'") + return content.replace('?', '??').replace('+', '?+').replace(':', '?:').replace("'", "?'").replace('@', '?@') def fints_unescape(content): - return content.replace('??', '?').replace("?'", "'").replace('?+', '+').replace('?:', ':') + return content.replace('??', '?').replace("?'", "'").replace('?+', '+').replace('?:', ':').replace('?@', '@') def split_for_data_groups(seg):