Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asyncpg/_asyncio_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def wait_for(fut: compat.Awaitable[_T], timeout: float | None) -> _T:

If the wait is cancelled, the task is also cancelled.

If the task supresses the cancellation and returns a value instead,
If the task suppresses the cancellation and returns a value instead,
that value is returned.

This function is a coroutine.
Expand Down
6 changes: 3 additions & 3 deletions asyncpg/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def remove_listener(self, channel, callback):
def add_log_listener(self, callback):
"""Add a listener for Postgres log messages.

It will be called when asyncronous NoticeResponse is received
It will be called when asynchronous NoticeResponse is received
from the connection. Possible message types are: WARNING, NOTICE,
DEBUG, INFO, or LOG.

Expand Down Expand Up @@ -2147,7 +2147,7 @@ async def connect(dsn=None, *,
- host address(es) parsed from the *dsn* argument,
- the value of the ``PGHOST`` environment variable,
- on Unix, common directories used for PostgreSQL Unix-domain
sockets: ``"/run/postgresql"``, ``"/var/run/postgresl"``,
sockets: ``"/run/postgresql"``, ``"/var/run/postgresql"``,
``"/var/pgsql_socket"``, ``"/private/tmp"``, and ``"/tmp"``,
- ``"localhost"``.

Expand Down Expand Up @@ -2199,7 +2199,7 @@ async def connect(dsn=None, *,
connection service file.

:param servicefile:
The location of the connnection service file used to store
The location of the connection service file used to store
connection parameters.

:param loop:
Expand Down
2 changes: 1 addition & 1 deletion asyncpg/prepared_stmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def explain(self, *args, analyze=False):

:param args: Query arguments.
:param analyze: If ``True``, the statement will be executed and
the run time statitics added to the return value.
the run time statistics added to the return value.

:return: An object representing the execution plan. This value
is actually a deserialized JSON output of the SQL
Expand Down
4 changes: 2 additions & 2 deletions asyncpg/protocol/codecs/array.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ cdef _nested_array_decode(ConnectionSettings settings,
# loop expects this.
cpython.Py_INCREF(elem)

# Iterate over array dimentions and put the element in
# Iterate over array dimensions and put the element in
# the correctly nested sublist.
for j in reversed(range(ndims)):
if indexes[j] == 0:
Expand All @@ -393,7 +393,7 @@ cdef _nested_array_decode(ConnectionSettings settings,
if indexes[j] == dims[j] and j != 0:
# This array level is full, continue the
# ascent in the dimensions so that this level
# sublist will be appened to the parent list.
# sublist will be appended to the parent list.
elem = stride
# Reset the index, this will cause the
# new list to be allocated on the next
Expand Down
4 changes: 2 additions & 2 deletions asyncpg/protocol/coreproto.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ cdef class CoreProtocol:
self.result_type = RESULT_FAILED
self.result = apg_exc.InterfaceError(
'could not verify server signature for '
'SCRAM authentciation: scram-sha-256',
'SCRAM authentication: scram-sha-256',
)
self.scram = None

Expand Down Expand Up @@ -694,7 +694,7 @@ cdef class CoreProtocol:
cdef:
WriteBuffer msg

# use the first supported advertized mechanism
# use the first supported advertised mechanism
self.scram = SCRAMAuthentication(sasl_auth_methods[0])
# this involves a call and response with the server
msg = WriteBuffer.new_message(b'p')
Expand Down
2 changes: 1 addition & 1 deletion asyncpg/protocol/scram.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cdef class SCRAMAuthentication:
SCRAM-SHA-256-PLUS) but to do some ongoing discussion, there is a conscious
decision by several driver authors to not support it as of yet. As such, the
channel binding parameter is hard-coded to "n" for now, but can be updated
to support other channel binding methos in the future
to support other channel binding methods in the future
"""
AUTHENTICATION_METHODS = [b"SCRAM-SHA-256"]
DEFAULT_CLIENT_NONCE_BYTES = 24
Expand Down