From: Denis Laxalde Date: Fri, 19 Aug 2022 17:05:05 +0000 (+0200) Subject: chore: fix typos spotted by codespell 2.2.1 X-Git-Tag: 3.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e624d1b7818776c03657f7c6da1bdc3bc14a2d3c;p=thirdparty%2Fpsycopg.git chore: fix typos spotted by codespell 2.2.1 --- diff --git a/psycopg/psycopg/connection.py b/psycopg/psycopg/connection.py index 471fdec6f..6c11d17ec 100644 --- a/psycopg/psycopg/connection.py +++ b/psycopg/psycopg/connection.py @@ -592,7 +592,7 @@ class BaseConnection(Generic[Row]): if self._autocommit: raise e.ProgrammingError( - "can't use two-phase transctions in autocommit mode" + "can't use two-phase transactions in autocommit mode" ) self._tpc = (xid, False) diff --git a/psycopg/psycopg/cursor.py b/psycopg/psycopg/cursor.py index 09eddbea8..83b4536e7 100644 --- a/psycopg/psycopg/cursor.py +++ b/psycopg/psycopg/cursor.py @@ -495,7 +495,7 @@ class BaseCursor(Generic[ConnectionType, Row]): raise e.PipelineAborted("pipeline aborted") elif status == COPY_IN or status == COPY_OUT or status == COPY_BOTH: raise e.ProgrammingError( - "COPY cannot be used with this method; use copy() insead" + "COPY cannot be used with this method; use copy() instead" ) else: raise e.InternalError(