Skip to content

Commit

Permalink
Bit more pythonic
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwhitehead authored Jul 10, 2019
1 parent f78c1fc commit 9bf51ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async def prompt(*args, **kwargs):
try:
while True:
tmp = await prompt_toolkit.prompt(*args, async_=True, **kwargs)
if 0 < len(tmp):
if tmp:
break
return tmp
except EOFError:
Expand Down

0 comments on commit 9bf51ed

Please sign in to comment.