1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
From: Debian Python Team <team+python@tracker.debian.org>
Date: Fri, 23 Jan 2026 16:14:41 +0000
Subject: SyntaxWarning
===================================================================
---
sievelib/managesieve.py | 6 +++---
sievelib/parser.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sievelib/managesieve.py b/sievelib/managesieve.py
index 3e3fc37..cf50b50 100644
--- a/sievelib/managesieve.py
+++ b/sievelib/managesieve.py
@@ -180,7 +180,7 @@ class Client:
return ret
def __read_response(self, nblines: int = -1) -> Tuple[bytes, bytes, bytes]:
- """Read a response from the server.
+ r"""Read a response from the server.
In the usual case, we read lines until we find one that looks
like a response (OK|NO|BYE\\s*(.+)?).
@@ -216,7 +216,7 @@ class Client:
return (code, data, resp)
def __prepare_args(self, args: List[Any]) -> List[bytes]:
- """Format command arguments before sending them.
+ r"""Format command arguments before sending them.
Command arguments of type string must be quoted, the only
exception concerns size indication (of the form {\\d\\+?}).
@@ -309,7 +309,7 @@ class Client:
return True
def __parse_error(self, text: bytes):
- """Parse an error received from the server.
+ r"""Parse an error received from the server.
if text corresponds to a size indication, we grab the
remaining content from the server.
diff --git a/sievelib/parser.py b/sievelib/parser.py
index c4e6b77..bf565f4 100755
--- a/sievelib/parser.py
+++ b/sievelib/parser.py
@@ -25,7 +25,7 @@ class ParseError(Exception):
class Lexer:
- """
+ r"""
The lexical analysis part.
This class provides a simple way to define tokens (with patterns)
|