Skip to content

Commit a500f02

Browse files
committed
chore: remove juju.loop, deprecated before 3.0
1 parent 9734c81 commit a500f02

3 files changed

Lines changed: 2 additions & 46 deletions

File tree

debian/control

Lines changed: 2 additions & 4 deletions
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

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/unit/test_loop.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)