Use python3 range.
Including potential memory reduction due to not created unnecessary lists.
This commit is contained in:
parent
ee0db7a50d
commit
bcd8674ef3
20 changed files with 66 additions and 46 deletions
|
|
@ -4,6 +4,7 @@ The base Command class.
|
|||
All commands in Evennia inherit from the 'Command' class in this module.
|
||||
|
||||
"""
|
||||
from builtins import range
|
||||
|
||||
import re
|
||||
from evennia.locks.lockhandler import LockHandler
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ the Evennia API. It is also a severe security risk and should
|
|||
therefore always be limited to superusers only.
|
||||
|
||||
"""
|
||||
from builtins import range
|
||||
|
||||
from traceback import format_exc
|
||||
from django.conf import settings
|
||||
from evennia.utils.batchprocessors import BATCHCMD, BATCHCODE
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import sys
|
|||
Building and world design commands
|
||||
|
||||
"""
|
||||
from builtins import range
|
||||
|
||||
import re
|
||||
from django.conf import settings
|
||||
from django.db.models import Q
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ self.msg() and similar methods to reroute returns to the correct
|
|||
method. Otherwise all text will be returned to all connected sessions.
|
||||
|
||||
"""
|
||||
from builtins import range
|
||||
|
||||
import time
|
||||
from django.conf import settings
|
||||
from evennia.server.sessionhandler import SESSIONS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue