]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: fix typos spotted by codespell 2.2.1
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 19 Aug 2022 17:05:05 +0000 (19:05 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 20 Aug 2022 01:43:47 +0000 (03:43 +0200)
psycopg/psycopg/connection.py
psycopg/psycopg/cursor.py

index 471fdec6fb0d1bf5c6f9be42939c71ff24b46ae7..6c11d17ecaedb25df9869c0a1183bb34487e370a 100644 (file)
@@ -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)
index 09eddbea89d6f85878a93fb45a57ce45b935ae97..83b4536e7555dffa647c37734518e01ef2a62363 100644 (file)
@@ -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(