Merge branch 'master' into develop

This commit is contained in:
Griatch 2020-07-19 10:54:12 +02:00
commit f9700619b7
3 changed files with 9 additions and 8 deletions

View file

@ -70,6 +70,9 @@ from django.conf import settings
from evennia.utils import utils, logger
# The stack size is a security measure. Set to <=0 to disable.
_STACK_MAXSIZE = settings.INLINEFUNC_STACK_MAXSIZE
# example/testing inline functions
@ -279,12 +282,6 @@ for module in utils.make_iter(settings.INLINEFUNC_MODULES):
raise
# The stack size is a security measure. Set to <=0 to disable.
try:
_STACK_MAXSIZE = settings.INLINEFUNC_STACK_MAXSIZE
except AttributeError:
_STACK_MAXSIZE = 20
# regex definitions
_RE_STARTTOKEN = re.compile(r"(?<!\\)\$(\w+)\(") # unescaped $funcname( (start of function call)