From: Romain Rinie Date: Tue, 7 Aug 2018 07:54:55 +0000 (+0200) Subject: Escape and unescape character @ X-Git-Tag: v2.0.0~1^2~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b6ef548bca0d838ec6dd6aa283745ca2bbbeda1;p=thirdparty%2Fpython-fints.git Escape and unescape character @ --- diff --git a/fints/utils.py b/fints/utils.py index 50fdfc7..8af0849 100644 --- a/fints/utils.py +++ b/fints/utils.py @@ -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):