diff --git a/18-asyncio-py3.7/spinner_asyncio.py b/18-asyncio-py3.7/spinner_asyncio.py index 369a8f0..31bb014 100755 --- a/18-asyncio-py3.7/spinner_asyncio.py +++ b/18-asyncio-py3.7/spinner_asyncio.py @@ -14,7 +14,8 @@ async def spin(msg): # <1> for char in itertools.cycle('|/-\\'): status = char + ' ' + msg - print(status, flush=True, end='\r') + print(end='\r') + print(status, flush=True, end='') try: await asyncio.sleep(.1) # <2> except asyncio.CancelledError: # <3>
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: