# HG changeset patch # User Franz Glasner # Date 1639785829 -3600 # Node ID 34cd4f1111342bacf40c9af7edb11889104dc4e9 # Parent f46932e8a84c4ea2eb6c9f7cfcc446d54b91ecf7 "quote()" and "unquote()" are now static methods diff -r f46932e8a84c -r 34cd4f111134 configmix/config.py --- a/configmix/config.py Sat Dec 18 00:43:36 2021 +0100 +++ b/configmix/config.py Sat Dec 18 01:03:49 2021 +0100 @@ -737,8 +737,8 @@ value = filterfn(self, value) return value - @classmethod - def quote(klass, s): + @staticmethod + def quote(s): """Replace important special characters in string `s` by replacing them with ``%xNN`` where `NN` are the two hexadecimal digits of the characters unicode codepoint value. @@ -766,8 +766,8 @@ else: return s - @classmethod - def unquote(klass, s): + @staticmethod + def unquote(s): """Unquote the content of `s`: handle all patterns ``%xNN``, ``%uNNNN`` or ``%UNNNNNNNN``.