@@ -140,7 +140,7 @@ class Connection(object):
140
140
Specifies my.cnf file to read these parameters from under the [client] section.
141
141
:param conv:
142
142
Conversion dictionary to use instead of the default one.
143
- This is used to provide custom marshalling and unmarshaling of types.
143
+ This is used to provide custom marshalling and unmarshalling of types.
144
144
See converters.
145
145
:param use_unicode:
146
146
Whether or not to default to unicode strings.
@@ -159,14 +159,14 @@ class Connection(object):
159
159
:param local_infile: Boolean to enable the use of LOAD DATA LOCAL command. (default: False)
160
160
:param max_allowed_packet: Max size of packet sent to server in bytes. (default: 16MB)
161
161
Only used to limit size of "LOAD LOCAL INFILE" data packet smaller than default (16KB).
162
- :param defer_connect: Don't explicitly connect on contruction - wait for connect call.
162
+ :param defer_connect: Don't explicitly connect on construction - wait for connect call.
163
163
(default: False)
164
164
:param auth_plugin_map: A dict of plugin names to a class that processes that plugin.
165
165
The class will take the Connection object as the argument to the constructor.
166
166
The class needs an authenticate method taking an authentication packet as
167
167
an argument. For the dialog plugin, a prompt(echo, prompt) method can be used
168
168
(if no authenticate method) for returning a string from the user. (experimental)
169
- :param server_public_key: SHA256 authenticaiton plugin public key value. (default: None)
169
+ :param server_public_key: SHA256 authentication plugin public key value. (default: None)
170
170
:param db: Alias for database. (for compatibility to MySQLdb)
171
171
:param passwd: Alias for password. (for compatibility to MySQLdb)
172
172
:param binary_prefix: Add _binary prefix on bytes and bytearray. (default: False)
@@ -622,9 +622,9 @@ def connect(self, sock=None):
622
622
623
623
def write_packet (self , payload ):
624
624
"""Writes an entire "mysql packet" in its entirety to the network
625
- addings its length and sequence number.
625
+ adding its length and sequence number.
626
626
"""
627
- # Internal note: when you build packet manualy and calls _write_bytes()
627
+ # Internal note: when you build packet manually and calls _write_bytes()
628
628
# directly, you should set self._next_seq_id properly.
629
629
data = pack_int24 (len (payload )) + int2byte (self ._next_seq_id ) + payload
630
630
if DEBUG : dump_packet (data )
0 commit comments