8000 Fix minor typos in comments (#784) · rainingmaster/PyMySQL@188efc5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 188efc5

Browse files
carsonipmethane
authored andcommitted
Fix minor typos in comments (PyMySQL#784)
1 parent 3f04fca commit 188efc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pymysql/connections.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Connection(object):
140140
Specifies my.cnf file to read these parameters from under the [client] section.
141141
:param conv:
142142
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.
144144
See converters.
145145
:param use_unicode:
146146
Whether or not to default to unicode strings.
@@ -159,14 +159,14 @@ class Connection(object):
159159
:param local_infile: Boolean to enable the use of LOAD DATA LOCAL command. (default: False)
160160
:param max_allowed_packet: Max size of packet sent to server in bytes. (default: 16MB)
161161
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.
163163
(default: False)
164164
:param auth_plugin_map: A dict of plugin names to a class that processes that plugin.
165165
The class will take the Connection object as the argument to the constructor.
166166
The class needs an authenticate method taking an authentication packet as
167167
an argument. For the dialog plugin, a prompt(echo, prompt) method can be used
168168
(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)
170170
:param db: Alias for database. (for compatibility to MySQLdb)
171171
:param passwd: Alias for password. (for compatibility to MySQLdb)
172172
:param binary_prefix: Add _binary prefix on bytes and bytearray. (default: False)
@@ -622,9 +622,9 @@ def connect(self, sock=None):
622622

623623
def write_packet(self, payload):
624624
"""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.
626626
"""
627-
# Internal note: when you build packet manualy and calls _write_bytes()
627+
# Internal note: when you build packet manually and calls _write_bytes()
628628
# directly, you should set self._next_seq_id properly.
629629
data = pack_int24(len(payload)) + int2byte(self._next_seq_id) + payload
630630
if DEBUG: dump_packet(data)

0 commit comments

Comments
 (0)
0