]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Escape and unescape character @
authorRomain Rinie <romain.rinie@xcom.de>
Tue, 7 Aug 2018 07:54:55 +0000 (09:54 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:34:28 +0000 (19:34 +0100)
fints/utils.py

index 50fdfc7ae4151d00a0abdee98c136ef61db27ae6..8af0849234cabb0d61a623ec93ba5b0780a26674 100644 (file)
@@ -49,6 +49,10 @@ def classproperty(f):
     return fx(f)
 
 
+def fints_unescape(content):
+    return content.replace('??', '?').replace("?'", "'").replace('?+', '+').replace('?:', ':').replace('?@', '@')
+
+
 class SubclassesMixin:
     @classmethod
     def _all_subclasses(cls):