Use python3 range.

Including potential memory reduction due to not created unnecessary lists.
This commit is contained in:
Ahmed Charles 2015-11-02 11:47:07 +00:00
parent ee0db7a50d
commit bcd8674ef3
20 changed files with 66 additions and 46 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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