Skip to content

Commit 50cf299

Browse files
committed
fix errrors
1 parent 2c8398d commit 50cf299

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

trio_asyncio/adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __get__(self, obj, cls):
130130

131131
def __call__(self, *args, **kwargs):
132132
if self.args:
133-
raise RuntimeError("Call 'trio_as_aio(proc)(*args)', not 'aio_as_trio(proc, *args)'")
133+
raise RuntimeError("Call 'trio_as_aio(proc)(*args)', not 'trio_as_aio(proc, *args)'")
134134

135135
proc = self.proc
136136
if kwargs:
@@ -141,7 +141,7 @@ def __aenter__(self):
141141
proc_enter = getattr(self.proc, "__aenter__", None)
142142
if proc_enter is None or self.args:
143143
raise RuntimeError(
144-
"Call 'aio_as_trio(ctxfactory(*args))', not 'aio_as_trio(ctxfactory, *args)'"
144+
"Call 'trio_as_aio(ctxfactory(*args))', not 'trio_as_aio(ctxfactory, *args)'"
145145
)
146146
return self.loop.trio_as_future(proc_enter)
147147

@@ -153,7 +153,7 @@ def __aiter__(self):
153153
proc_iter = getattr(self.proc, "__aiter__", None)
154154
if proc_iter is None or self.args:
155155
raise RuntimeError(
156-
"Call 'aio_as_trio(gen(*args))', not 'aio_as_trio(gen, *args)'"
156+
"Call 'trio_as_aio(gen(*args))', not 'trio_as_aio(gen, *args)'"
157157
)
158158
return run_trio_generator(self.loop, proc_iter())
159159

0 commit comments

Comments
 (0)