python: make some docstrings raw

Fixes:

    notmuch/message.py:57: DeprecationWarning: invalid escape sequence \s
    notmuch/query.py:155: DeprecationWarning: invalid escape sequence \.
    notmuch/messages.py:89: DeprecationWarning: invalid escape sequence \s

with Python >= 3.6.
This commit is contained in:
Jakub Wilk 2019-11-20 11:46:39 +01:00 committed by David Bremner
parent 7ad7cfbff2
commit bb843f63fc
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ import sys
class Message(Python3StringMixIn): class Message(Python3StringMixIn):
"""Represents a single Email message r"""Represents a single Email message
Technically, this wraps the underlying *notmuch_message_t* Technically, this wraps the underlying *notmuch_message_t*
structure. A user will usually not create these objects themselves structure. A user will usually not create these objects themselves

View file

@ -32,7 +32,7 @@ from .tag import Tags
from .message import Message from .message import Message
class Messages(object): class Messages(object):
"""Represents a list of notmuch messages r"""Represents a list of notmuch messages
This object provides an iterator over a list of notmuch messages This object provides an iterator over a list of notmuch messages
(Technically, it provides a wrapper for the underlying (Technically, it provides a wrapper for the underlying

View file

@ -140,7 +140,7 @@ class Query(object):
_search_threads.restype = c_uint _search_threads.restype = c_uint
def search_threads(self): def search_threads(self):
"""Execute a query for threads r"""Execute a query for threads
Execute a query for threads, returning a :class:`Threads` iterator. Execute a query for threads, returning a :class:`Threads` iterator.
The returned threads are owned by the query and as such, will only be The returned threads are owned by the query and as such, will only be