diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-28 21:28:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-29 00:00:40 +0900 |
commit | cf571297f52ad4a5e5843555d9c016d526f03c43 (patch) | |
tree | 7e9eb123a08b935d382ac194a9a1f9e666ee09ee /serviceconfig | |
parent | 00acd92ff96bd6d3bb3136aa6d6b37314b3ad623 (diff) | |
download | tde-guidance-cf571297f52ad4a5e5843555d9c016d526f03c43.tar.gz tde-guidance-cf571297f52ad4a5e5843555d9c016d526f03c43.zip |
Fix functionality with python 3.r14.1.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'serviceconfig')
-rwxr-xr-x | serviceconfig/serviceconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/serviceconfig/serviceconfig.py b/serviceconfig/serviceconfig.py index 23c5c17..15fa559 100755 --- a/serviceconfig/serviceconfig.py +++ b/serviceconfig/serviceconfig.py @@ -1108,7 +1108,7 @@ class SysVInitApp(programbase): def __selectFirstService(self): # Grab the first service in the list and select it. services = self.currentrunlevel.availableservices[:] - services.sort(lambda x,y: cmp(x.filename,y.filename)) + services.sort(key=lambda x: x.filename) self.selectedservice = None try: self.selectedservice = services[0] @@ -1145,7 +1145,7 @@ class SysVInitApp(programbase): self.servicestolistitems = {} services = self.currentrunlevel.availableservices[:] - services.sort(lambda x,y: cmp(x.filename,y.filename)) + services.sort(key=lambda x: x.filename) for item in services: if item.isAvailableInRunlevel(runlevelobj): @@ -1311,7 +1311,7 @@ class SysVInitApp(programbase): dialog.showCancelButton(False) services = self.currentrunlevel.availableservices[:] - services.sort(lambda x,y: cmp(x.filename,y.filename)) + services.sort(key=lambda x: x.filename) dialog.progressBar().setTotalSteps(len(services)) kapp.processEvents() |