[+] update repo
1. add asyncio.handle_task_result; 2. improve pass_ssh_osx; 3. update vpn dependency;
This commit is contained in:
parent
0a50c26d1d
commit
cb69309307
2
deps/com.github.aiortc.aiortc
vendored
2
deps/com.github.aiortc.aiortc
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 1c8f054d29bfa9dae897f6101f95e8eb4f920305
|
Subproject commit 53fcbd80363b2eb93b520babeecb8b0f736d3dbf
|
@ -1637,9 +1637,9 @@ def pass_ssh_osx(argv):
|
|||||||
clipboard_set('')
|
clipboard_set('')
|
||||||
print('\rcleared cliboard\n', end='')
|
print('\rcleared cliboard\n', end='')
|
||||||
elif options.mode is pass_ssh_osx_t.kwargs_t.Mode.qrcode:
|
elif options.mode is pass_ssh_osx_t.kwargs_t.Mode.qrcode:
|
||||||
assert subprocess.check_call(r'''
|
assert subprocess.run(r'''
|
||||||
qrencode -t PNG -o - | feh -
|
qrencode -t PNG -o - | feh -
|
||||||
''', stdin=password, shell=True) == 0
|
''', input=password.encode('utf-8'), shell=True).returncode == 0
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
14
python/online/fxreader/pr34/commands_typed/asyncio.py
Normal file
14
python/online/fxreader/pr34/commands_typed/asyncio.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import logging
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
from typing import (Any,)
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
def handle_task_result(fut: asyncio.Future[Any]) -> None:
|
||||||
|
try:
|
||||||
|
fut.result()
|
||||||
|
|
||||||
|
logger.debug(dict(fut=fut, msg='done'), stacklevel=2,)
|
||||||
|
except:
|
||||||
|
logger.exception('', stacklevel=2,)
|
Loading…
Reference in New Issue
Block a user