whoops
This commit is contained in:
parent
0ca1e8eb62
commit
e3d2edb4bc
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue