summaryrefslogtreecommitdiffstats
path: root/serviceconfig
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-28 21:28:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-01-29 00:00:40 +0900
commitcf571297f52ad4a5e5843555d9c016d526f03c43 (patch)
tree7e9eb123a08b935d382ac194a9a1f9e666ee09ee /serviceconfig
parent00acd92ff96bd6d3bb3136aa6d6b37314b3ad623 (diff)
downloadtde-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-xserviceconfig/serviceconfig.py6
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()