Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/python-bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bareos/bsock/lowlevel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bareos/bsock/lowlevel.py b/bareos/bsock/lowlevel.py
index 30ee9d3..f103dd4 100644
--- a/bareos/bsock/lowlevel.py
+++ b/bareos/bsock/lowlevel.py
@@ -199,7 +199,7 @@ class LowLevel(object):
# check for regex in new submsg
# and last line in old message,
# which might have been incomplete without new submsg.
- lastlineindex = self.receive_buffer.rfind('\n') + 1
+ lastlineindex = self.receive_buffer.rfind(b'\n') + 1
self.receive_buffer += submsg
match = re.search(regex, self.receive_buffer[lastlineindex:], re.MULTILINE)
# Bareos indicates end of command result by line starting with 4 digits