@@ -214,7 +214,7 @@ def _accept_connection2(self, protocol_factory, conn, extra,
214
214
215
215
# It's now up to the protocol to handle the connection.
216
216
except Exception as exc :
217
- if self .get_debug () :
217
+ if self ._debug :
218
218
context = {
219
219
'message' : ('Error on transport creation '
220
220
'for incoming connection' ),
@@ -312,7 +312,7 @@ def sock_recv(self, sock, n):
312
312
313
313
This method is a coroutine.
314
314
"""
315
- if self .get_debug () and sock .gettimeout () != 0 :
315
+ if self ._debug and sock .gettimeout () != 0 :
316
316
raise ValueError ("the socket must be non-blocking" )
317
317
fut = futures .Future (loop = self )
318
318
self ._sock_recv (fut , False , sock , n )
@@ -350,7 +350,7 @@ def sock_sendall(self, sock, data):
350
350
351
351
This method is a coroutine.
352
352
"""
353
- if self .get_debug () and sock .gettimeout () != 0 :
353
+ if self ._debug and sock .gettimeout () != 0 :
354
354
raise ValueError ("the socket must be non-blocking" )
355
355
fut = futures .Future (loop = self )
356
356
if data :
@@ -393,7 +393,7 @@ def sock_connect(self, sock, address):
393
393
394
394
This method is a coroutine.
395
395
"""
396
- if self .get_debug () and sock .gettimeout () != 0 :
396
+ if self ._debug and sock .gettimeout () != 0 :
397
397
raise ValueError ("the socket must be non-blocking" )
398
398
fut = futures .Future (loop = self )
399
399
try :
@@ -453,7 +453,7 @@ def sock_accept(self, sock):
453
453
454
454
This method is a coroutine.
455
455
"""
456
- if self .get_debug () and sock .gettimeout () != 0 :
456
+ if self ._debug and sock .gettimeout () != 0 :
457
457
raise ValueError ("the socket must be non-blocking" )
458
458
fut = futures .Future (loop = self )
459
459
self ._sock_accept (fut , False , sock )
0 commit comments