From ce3cc19462b62972a994ba997188d35135178be5 Mon Sep 17 00:00:00 2001 From: Florian Sesser Date: Thu, 7 Nov 2024 13:57:01 +0000 Subject: [PATCH 1/3] Stop SyntaxWarnings because of some escaped blank _zkapauthorizer/replicate.py:393: SyntaxWarning: invalid escape sequence '\ ' _zkapauthorizer/replicate.py:490: SyntaxWarning: invalid escape sequence '\ ' --- src/_zkapauthorizer/replicate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_zkapauthorizer/replicate.py b/src/_zkapauthorizer/replicate.py index f4f10d34..00364057 100644 --- a/src/_zkapauthorizer/replicate.py +++ b/src/_zkapauthorizer/replicate.py @@ -395,7 +395,7 @@ class _ReplicationCapableConnection: streaming replication-related features. All of this type's methods are intended to behave the same way as - ``sqlite3.Connection``\ 's methods except they may also add some + ``sqlite3.Connection`` 's methods except they may also add some additional functionality to support replication. :ivar _replicating: ``True`` if this connection is currently in @@ -492,7 +492,7 @@ class _ReplicationCapableCursor: replication-related features. All of this type's attributes and methods are intended to behave the same - way as ``sqlite3.Cursor``\ 's methods except they may also add some + way as ``sqlite3.Cursor`` 's methods except they may also add some additional functionality to support replication. """ From 4251ba08175fcfc5d076a35c2388b76cdb1b6b59 Mon Sep 17 00:00:00 2001 From: Florian Sesser Date: Thu, 7 Nov 2024 17:04:07 +0000 Subject: [PATCH 2/3] Revert "Stop SyntaxWarnings because of some escaped blank" This reverts commit ce3cc19462b62972a994ba997188d35135178be5. --- src/_zkapauthorizer/replicate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_zkapauthorizer/replicate.py b/src/_zkapauthorizer/replicate.py index 00364057..f4f10d34 100644 --- a/src/_zkapauthorizer/replicate.py +++ b/src/_zkapauthorizer/replicate.py @@ -395,7 +395,7 @@ class _ReplicationCapableConnection: streaming replication-related features. All of this type's methods are intended to behave the same way as - ``sqlite3.Connection`` 's methods except they may also add some + ``sqlite3.Connection``\ 's methods except they may also add some additional functionality to support replication. :ivar _replicating: ``True`` if this connection is currently in @@ -492,7 +492,7 @@ class _ReplicationCapableCursor: replication-related features. All of this type's attributes and methods are intended to behave the same - way as ``sqlite3.Cursor`` 's methods except they may also add some + way as ``sqlite3.Cursor``\ 's methods except they may also add some additional functionality to support replication. """ From fd1a44e05bf73533dbebf8988f7152b2e454af04 Mon Sep 17 00:00:00 2001 From: Florian Sesser Date: Thu, 7 Nov 2024 17:05:55 +0000 Subject: [PATCH 3/3] Use raw string instead of removing escape backslash --- src/_zkapauthorizer/replicate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_zkapauthorizer/replicate.py b/src/_zkapauthorizer/replicate.py index f4f10d34..b5b9b355 100644 --- a/src/_zkapauthorizer/replicate.py +++ b/src/_zkapauthorizer/replicate.py @@ -390,7 +390,7 @@ def with_replication( @define class _ReplicationCapableConnection: - """ + r""" Wrap a ``sqlite3.Connection`` to provide additional snapshot- and streaming replication-related features. @@ -487,7 +487,7 @@ def cursor(self, factory: Optional[type] = None) -> _ReplicationCapableCursor: @define class _ReplicationCapableCursor: - """ + r""" Wrap a ``sqlite3.Cursor`` to provide additional streaming replication-related features.