From e3d2edb4bca7f91596bd9bd54611e80900d8b186 Mon Sep 17 00:00:00 2001 From: Open Toontown <57279094+opentoontown@users.noreply.github.com> Date: Wed, 19 Jan 2022 20:59:55 -0500 Subject: [PATCH] whoops --- toontown/shtiker/DirectNewsFrame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toontown/shtiker/DirectNewsFrame.py b/toontown/shtiker/DirectNewsFrame.py index fcb8a59..9106083 100644 --- a/toontown/shtiker/DirectNewsFrame.py +++ b/toontown/shtiker/DirectNewsFrame.py @@ -1,5 +1,6 @@ import os import datetime +import functools from panda3d.core import Filename, DSearchPath, ConfigVariableString, ConfigVariableBool from panda3d.core import HTTPClient, Ramfile, DocumentSpec from direct.showbase import DirectObject @@ -121,7 +122,7 @@ class DirectNewsFrame(DirectObject.DirectObject): return fileA.getFilename().compareTo(fileB.getFilename()) homeFileNames = list(homeFileNames) - homeFileNames.sort(cmp=fileCmp) + homeFileNames.sort(key=functools.cmp_to_key(fileCmp)) self.notify.debug('returned homeFileNames=%s' % homeFileNames) return homeFileNames