mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 10:49:30 +02:00
py2: reduce ram usage
This commit is contained in:
parent
72361c99e1
commit
ebb1981803
12 changed files with 45 additions and 5 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue