diff options
Diffstat (limited to 'serviceconfig/serviceconfig.py')
-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() |