Skip to content

Commit 9b4e411

Browse files
authored
Merge pull request #1242 from dimaqq/chore-remove-juju-loop
#1242 juju.loop was deprecated before the 3.0 release. finally remove it.
2 parents 9734c81 + a500f02 commit 9b4e411

File tree

3 files changed

+2
-46
lines changed

3 files changed

+2
-46
lines changed

debian/control

+2-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Description:
6767
.
6868
#!/usr/bin/python3
6969
.
70+
import asyncio
7071
import logging
7172
import sys
7273
.
73-
from juju import loop
7474
from juju.model import Model
7575
.
7676
.
@@ -107,9 +107,7 @@ Description:
107107
ws_logger = logging.getLogger('websockets.protocol')
108108
ws_logger.setLevel(logging.INFO)
109109
.
110-
# Run the deploy coroutine in an asyncio event loop, using a helper
111-
# that abstracts loop creation and teardown.
112-
loop.run(deploy())
110+
asyncio.run(deploy())
113111
.
114112
.
115113
if __name__ == '__main__':

juju/loop.py

-12
This file was deleted.

tests/unit/test_loop.py

-30
This file was deleted.

0 commit comments

Comments
 (0)