mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 02:50:47 +00:00
use walrus =)
This commit is contained in:
parent
a4cc7058b6
commit
bc508f8982
@ -64,8 +64,7 @@ def interactive_mode(parser):
|
|||||||
while cmd := input("Please enter command (Press <Enter> to exit)\n"):
|
while cmd := input("Please enter command (Press <Enter> to exit)\n"):
|
||||||
if not cmd:
|
if not cmd:
|
||||||
break
|
break
|
||||||
res = parser.parse((cmd,))
|
if res := parser.parse((cmd,)):
|
||||||
if res:
|
|
||||||
print(res)
|
print(res)
|
||||||
|
|
||||||
|
|
||||||
@ -91,8 +90,7 @@ def main():
|
|||||||
interactive_mode(parser)
|
interactive_mode(parser)
|
||||||
return
|
return
|
||||||
|
|
||||||
res = parser.parse(cmds)
|
if res := parser.parse(cmds):
|
||||||
if res:
|
|
||||||
print(res)
|
print(res)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user