@@ -55,7 +55,7 @@ def connect(host="localhost", user=None, password="",
5555 read_default_file = None , conv = decoders , use_unicode = None ,
5656 client_flag = 0 , cursorclass = Cursor , init_command = None ,
5757 connect_timeout = None , read_default_group = None ,
58- no_delay = None , autocommit = False , echo = False ,
58+ autocommit = False , echo = False ,
5959 local_infile = False , loop = None , ssl = None , auth_plugin = '' ,
6060 program_name = '' , server_public_key = None ):
6161 """See connections.Connection.__init__() for information about
@@ -68,7 +68,7 @@ def connect(host="localhost", user=None, password="",
6868 init_command = init_command ,
6969 connect_timeout = connect_timeout ,
7070 read_default_group = read_default_group ,
71- no_delay = no_delay , autocommit = autocommit , echo = echo ,
71+ autocommit = autocommit , echo = echo ,
7272 local_infile = local_infile , loop = loop , ssl = ssl ,
7373 auth_plugin = auth_plugin , program_name = program_name )
7474 return _ConnectionContextManager (coro )
@@ -144,7 +144,7 @@ def __init__(self, host="localhost", user=None, password="",
144144 read_default_file = None , conv = decoders , use_unicode = None ,
145145 client_flag = 0 , cursorclass = Cursor , init_command = None ,
146146 connect_timeout = None , read_default_group = None ,
147- no_delay = None , autocommit = False , echo = False ,
147+ autocommit = False , echo = False ,
148148 local_infile = False , loop = None , ssl = None , auth_plugin = '' ,
149149 program_name = '' , server_public_key = None ):
150150 """
@@ -175,7 +175,6 @@ def __init__(self, host="localhost", user=None, password="",
175175 when connecting.
176176 :param read_default_group: Group to read from in the configuration
177177 file.
178- :param no_delay: Disable Nagle's algorithm on the socket
179178 :param autocommit: Autocommit mode. None means use server default.
180179 (default: False)
181180 :param local_infile: boolean to enable the use of LOAD DATA LOCAL
@@ -211,19 +210,11 @@ def __init__(self, host="localhost", user=None, password="",
211210 port = int (_config ("port" , fallback = port ))
212211 charset = _config ("default-character-set" , fallback = charset )
213212
214- # pymysql port
215- if no_delay is not None :
216- warnings .warn ("no_delay option is deprecated" , DeprecationWarning )
217- no_delay = bool (no_delay )
218- else :
219- no_delay = True
220-
221213 self ._host = host
222214 self ._port = port
223215 self ._user = user or DEFAULT_USER
224216 self ._password = password or ""
225217 self ._db = db
226- self ._no_delay = no_delay
227218 self ._echo = echo
228219 self ._last_usage = self ._loop .time ()
229220 self ._client_auth_plugin = auth_plugin
@@ -544,11 +535,8 @@ async def _connect(self):
544535 self ._port ),
545536 timeout = self .connect_timeout )
546537 self ._set_keep_alive ()
547- self .host_info = "socket %s:%d" % (self ._host , self ._port )
548-
549- # do not set no delay in case of unix_socket
550- if self ._no_delay and not self ._unix_socket :
551538 self ._set_nodelay (True )
539+ self .host_info = "socket %s:%d" % (self ._host , self ._port )
552540
553541 self ._next_seq_id = 0
554542
0 commit comments