Skip to content

Commit 24e8a53

Browse files
committed
Drop iterable_coroutine
1 parent 7775923 commit 24e8a53

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

asyncpg/protocol/protocol.pyx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ cdef class BaseProtocol(CoreProtocol):
136136
self.is_reading = False
137137
self.transport.pause_reading()
138138

139-
@cython.iterable_coroutine
140139
async def prepare(self, stmt_name, query, timeout,
141140
*,
142141
PreparedStatementState state=None,
@@ -165,7 +164,6 @@ cdef class BaseProtocol(CoreProtocol):
165164
finally:
166165
return await waiter
167166

168-
@cython.iterable_coroutine
169167
async def bind_execute(
170168
self,
171169
state: PreparedStatementState,
@@ -206,7 +204,6 @@ cdef class BaseProtocol(CoreProtocol):
206204
finally:
207205
return await waiter
208206

209-
@cython.iterable_coroutine
210207
async def bind_execute_many(
211208
self,
212209
state: PreparedStatementState,
@@ -268,7 +265,6 @@ cdef class BaseProtocol(CoreProtocol):
268265
finally:
269266
return await waiter
270267

271-
@cython.iterable_coroutine
272268
async def bind(self, PreparedStatementState state, args,
273269
str portal_name, timeout):
274270

@@ -297,7 +293,6 @@ cdef class BaseProtocol(CoreProtocol):
297293
finally:
298294
return await waiter
299295

300-
@cython.iterable_coroutine
301296
async def execute(self, PreparedStatementState state,
302297
str portal_name, int limit, return_extra,
303298
timeout):
@@ -327,7 +322,6 @@ cdef class BaseProtocol(CoreProtocol):
327322
finally:
328323
return await waiter
329324

330-
@cython.iterable_coroutine
331325
async def close_portal(self, str portal_name, timeout):
332326

333327
if self.cancel_waiter is not None:
@@ -350,7 +344,6 @@ cdef class BaseProtocol(CoreProtocol):
350344
finally:
351345
return await waiter
352346

353-
@cython.iterable_coroutine
354347
async def query(self, query, timeout):
355348
if self.cancel_waiter is not None:
356349
await self.cancel_waiter
@@ -375,7 +368,6 @@ cdef class BaseProtocol(CoreProtocol):
375368
finally:
376369
return await waiter
377370

378-
@cython.iterable_coroutine
379371
async def copy_out(self, copy_stmt, sink, timeout):
380372
if self.cancel_waiter is not None:
381373
await self.cancel_waiter
@@ -429,7 +421,6 @@ cdef class BaseProtocol(CoreProtocol):
429421

430422
return status_msg
431423

432-
@cython.iterable_coroutine
433424
async def copy_in(self, copy_stmt, reader, data,
434425
records, PreparedStatementState record_stmt, timeout):
435426
cdef:
@@ -568,7 +559,6 @@ cdef class BaseProtocol(CoreProtocol):
568559

569560
return status_msg
570561

571-
@cython.iterable_coroutine
572562
async def close_statement(self, PreparedStatementState state, timeout):
573563
if self.cancel_waiter is not None:
574564
await self.cancel_waiter
@@ -609,7 +599,6 @@ cdef class BaseProtocol(CoreProtocol):
609599
self.transport.abort()
610600
self.transport = None
611601

612-
@cython.iterable_coroutine
613602
async def close(self, timeout):
614603
if self.closing:
615604
return
@@ -752,7 +741,6 @@ cdef class BaseProtocol(CoreProtocol):
752741
self.cancel_sent_waiter is not None
753742
)
754743

755-
@cython.iterable_coroutine
756744
async def _wait_for_cancellation(self):
757745
if self.cancel_sent_waiter is not None:
758746
await self.cancel_sent_waiter

0 commit comments

Comments
 (0)