changeset 500:34cd4f111134

"quote()" and "unquote()" are now static methods
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 18 Dec 2021 01:03:49 +0100
parents f46932e8a84c
children 1c83389fb8dd
files configmix/config.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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``.