py2: reduce ram usage

This commit is contained in:
ed 2024-08-01 20:01:42 +00:00
parent 72361c99e1
commit ebb1981803
12 changed files with 45 additions and 5 deletions

View file

@ -12,7 +12,7 @@ import threading
import time
from datetime import datetime
from .__init__ import ANYWIN, TYPE_CHECKING, WINDOWS, E
from .__init__ import ANYWIN, PY2, TYPE_CHECKING, WINDOWS, E
from .bos import bos
from .cfg import flagdescs, permdescs, vf_bmap, vf_cmap, vf_vmap
from .pwhash import PWHash
@ -56,6 +56,9 @@ if TYPE_CHECKING:
# Vflags: TypeAlias = dict[str, Any]
# Mflags: TypeAlias = dict[str, Vflags]
if PY2:
range = xrange
LEELOO_DALLAS = "leeloo_dallas"