conf: Fix sorting of options with Python 3
[strongswan.git] / conf / format-options.py
index 5f850af..d046e24 100755 (executable)
@@ -67,8 +67,8 @@ class ConfigOption:
                self.desc = []
                self.options = []
 
-       def __cmp__(self, other):
-               return  cmp(self.name, other.name)
+       def __lt__(self, other):
+               return  self.name < other.name
 
        def add_paragraph(self):
                """Adds a new paragraph to the description"""