mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
new typing style
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
|
||||
import os
|
||||
|
||||
from typing import List
|
||||
|
||||
import passlib.crypto.des
|
||||
|
||||
|
||||
@@ -43,7 +41,7 @@ def rfb_encrypt_challenge(challenge: bytes, passwd: bytes) -> bytes:
|
||||
|
||||
def _make_key(passwd: bytes) -> bytes:
|
||||
passwd = (passwd + b"\0" * 8)[:8]
|
||||
key: List[int] = []
|
||||
key: list[int] = []
|
||||
for ch in passwd:
|
||||
btgt = 0
|
||||
for index in range(8):
|
||||
|
||||
Reference in New Issue
Block a user