From 0c166898bfe03fed3f73cd3ecf9ca478fc614345 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 13 Dec 2015 00:51:39 +0100 Subject: [PATCH] fix python 3.2 str.splitlines() compatibility issue --- borg/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/remote.py b/borg/remote.py index 50b56e1c1..1fcd97c50 100644 --- a/borg/remote.py +++ b/borg/remote.py @@ -265,7 +265,7 @@ def fetch_from_cache(args): if not data: raise ConnectionClosed() data = data.decode('utf-8') - for line in data.splitlines(keepends=True): + for line in data.splitlines(True): # keepends=True for py3.3+ if line.startswith('$LOG '): _, level, msg = line.split(' ', 2) level = getattr(logging, level, logging.CRITICAL) # str -> int