From 03ce09ca99d907becc30197038fdb17cbd3f3151 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Wed, 8 Jun 2016 22:32:48 +0530 Subject: [PATCH] Py3: Split on byte newlines in pathod.log --- pathod/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathod/log.py b/pathod/log.py index 1d3ec3565..23e9a2ce5 100644 --- a/pathod/log.py +++ b/pathod/log.py @@ -62,7 +62,7 @@ class LogCtx(object): for line in strutils.hexdump(data): self("\t%s %s %s" % line) else: - for i in strutils.clean_bin(data).split("\n"): + for i in strutils.clean_bin(data).split(b"\n"): self("\t%s" % i) def __call__(self, line):