mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-28 01:31:04 +02:00
aiocmd: 0.1.5 bump, fix https://github.com/KimiNewt/aiocmd/issues/3
This commit is contained in:
parent
f3465917fc
commit
2c6cba0189
3 changed files with 1 additions and 32 deletions
|
|
@ -1 +1 @@
|
|||
DIST aiocmd-0.1.2.tar.gz 4531 BLAKE2B 62f269900d6d5346ffc2db5d7d3f1af637d44174ff62cb16658c95c18a72093346b0a15229ecc6203755f4b3d246b77883fe07509715e4442a41a96144b531a8 SHA512 9b382c6c27928c88917b49d288cde11fd47c1e117f7dc3453fe1754d26aeb961e7f4b73f9e7b8e06ce86bea70909cc5fec94ebc2c3b588001c3dcf88f5d6fb14
|
||||
DIST aiocmd-0.1.5.tar.gz 4759 BLAKE2B a0282343ae4d2a025d363eae67f049fea7591ece925a258bad58e0b1f356d50b08606071d52cf9aad063c0e96af469e54dfea72820e203c8eb83682a5e15c4f4 SHA512 6893dd89671c83f317078fbf8440777adf59ae4628c2688e2ee34a5363479a6580538fd1f9a4184c0cbd2568b676e8a4126e0398536426eaa825a990c1f0949c
|
||||
|
|
|
|||
|
|
@ -19,6 +19,3 @@ IUSE="test"
|
|||
RDEPEND=">=dev-python/prompt_toolkit-3.0.0[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
#https://github.com/KimiNewt/aiocmd/issues/3
|
||||
PATCHES=( "${FILESDIR}/0.1.2-prompt_toolkit3.patch" )
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
diff -urN aiocmd-0.1.2.orig/aiocmd/aiocmd.py aiocmd-0.1.2/aiocmd/aiocmd.py
|
||||
--- aiocmd-0.1.2.orig/aiocmd/aiocmd.py 2019-09-12 20:35:08.000000000 +0800
|
||||
+++ aiocmd-0.1.2/aiocmd/aiocmd.py 2020-04-21 11:06:58.788721853 +0800
|
||||
@@ -11,7 +11,6 @@
|
||||
from prompt_toolkit.completion.nested import NestedCompleter
|
||||
except ImportError:
|
||||
from aiocmd.nested_completer import NestedCompleter
|
||||
-from prompt_toolkit.eventloop.defaults import use_asyncio_event_loop
|
||||
|
||||
|
||||
class ExitPromptException(Exception):
|
||||
@@ -34,7 +33,6 @@
|
||||
aliases = {"?": "help", "exit": "quit"}
|
||||
|
||||
def __init__(self, ignore_sigint=True):
|
||||
- use_asyncio_event_loop()
|
||||
self.completer = self._make_completer()
|
||||
self.session = None
|
||||
self._ignore_sigint = ignore_sigint
|
||||
@@ -55,7 +53,7 @@
|
||||
async def _run_prompt_forever(self):
|
||||
while True:
|
||||
try:
|
||||
- result = await self.session.prompt(self.prompt, async_=True, completer=self.completer)
|
||||
+ result = await self.session.prompt_async(self.prompt, completer=self.completer)
|
||||
except EOFError:
|
||||
return
|
||||
|
||||
Loading…
Reference in a new issue