mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 19:11:54 +08:00
removed aiofs
This commit is contained in:
@@ -24,7 +24,7 @@ import dataclasses
|
||||
|
||||
from ...logging import get_logger
|
||||
|
||||
from ... import aiofs
|
||||
from ... import aiotools
|
||||
|
||||
|
||||
# =====
|
||||
@@ -61,8 +61,7 @@ class VncAuthManager:
|
||||
return ({}, (not self.__enabled))
|
||||
|
||||
async def __inner_read_credentials(self) -> dict[str, VncAuthKvmdCredentials]:
|
||||
lines = (await aiofs.read(self.__path)).split("\n")
|
||||
|
||||
lines = (await aiotools.read_file(self.__path)).split("\n")
|
||||
credentials: dict[str, VncAuthKvmdCredentials] = {}
|
||||
for (lineno, line) in enumerate(lines):
|
||||
if len(line.strip()) == 0 or line.lstrip().startswith("#"):
|
||||
|
||||
Reference in New Issue
Block a user