Remove uses of the 'future' py2->3 module
This is no longer needed, now that we are Py3.7+ only. One layer of indirection removed, and one less dependency.
This commit is contained in:
parent
edbe583959
commit
bd33886cc0
16 changed files with 26 additions and 44 deletions
|
|
@ -14,7 +14,6 @@ There are two similar but separate stores of sessions:
|
|||
"""
|
||||
import time
|
||||
from builtins import object
|
||||
from future.utils import listvalues
|
||||
|
||||
from django.conf import settings
|
||||
from evennia.commands.cmdhandler import CMD_LOGINSTART
|
||||
|
|
@ -148,7 +147,7 @@ class SessionHandler(dict):
|
|||
|
||||
"""
|
||||
if include_unloggedin:
|
||||
return listvalues(self)
|
||||
return list(self.values())
|
||||
else:
|
||||
return [session for session in self.values() if session.logged_in]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue