diff options
Diffstat (limited to 'pathod/log.py')
-rw-r--r-- | pathod/log.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pathod/log.py b/pathod/log.py index 3f6aaea0..85006ba8 100644 --- a/pathod/log.py +++ b/pathod/log.py @@ -5,6 +5,7 @@ import six import netlib.utils import netlib.tcp import netlib.http +from netlib import strutils TIMEFMT = '%d-%m-%y %H:%M:%S' @@ -65,7 +66,7 @@ class LogCtx(object): for line in netlib.utils.hexdump(data): self("\t%s %s %s" % line) else: - for i in netlib.utils.clean_bin(data).split("\n"): + for i in strutils.clean_bin(data).split("\n"): self("\t%s" % i) def __call__(self, line): |