summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-03-11 20:47:37 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-03-11 13:47:37 -0500
commitea8e70593987570b29608369abe9726de12d2ca6 (patch)
tree8b8e80b4a9d233f4b6220063681964a6665bd6da
parent3645c3597e36caa00c2ec9e6b82ec1607a1aafea (diff)
downloadpython-systemd-ea8e70593987570b29608369abe9726de12d2ca6.tar.gz
Python 3.6 invalid escape sequence deprecation fixes (#43)
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
-rw-r--r--systemd/journal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/systemd/journal.py b/systemd/journal.py
index e9f714e..cd83377 100644
--- a/systemd/journal.py
+++ b/systemd/journal.py
@@ -236,7 +236,7 @@ class Reader(_Reader):
super(Reader, self).add_match(arg)
def get_next(self, skip=1):
- """Return the next log entry as a dictionary.
+ r"""Return the next log entry as a dictionary.
Entries will be processed with converters specified during Reader
creation.
@@ -257,7 +257,7 @@ class Reader(_Reader):
return dict()
def get_previous(self, skip=1):
- """Return the previous log entry.
+ r"""Return the previous log entry.
Equivalent to get_next(-skip).