We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9734c81 + a500f02 commit 9b4e411Copy full SHA for 9b4e411
debian/control
@@ -67,10 +67,10 @@ Description:
67
.
68
#!/usr/bin/python3
69
70
+ import asyncio
71
import logging
72
import sys
73
- from juju import loop
74
from juju.model import Model
75
76
@@ -107,9 +107,7 @@ Description:
107
ws_logger = logging.getLogger('websockets.protocol')
108
ws_logger.setLevel(logging.INFO)
109
110
- # Run the deploy coroutine in an asyncio event loop, using a helper
111
- # that abstracts loop creation and teardown.
112
- loop.run(deploy())
+ asyncio.run(deploy())
113
114
115
if __name__ == '__main__':
juju/loop.py
tests/unit/test_loop.py
0 commit comments