diff options
Diffstat (limited to 'pathod/log.py')
-rw-r--r-- | pathod/log.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pathod/log.py b/pathod/log.py index f203542f..5bf55de4 100644 --- a/pathod/log.py +++ b/pathod/log.py @@ -1,8 +1,8 @@ import datetime -import netlib.utils -import netlib.tcp -import netlib.http +import six + +from netlib import strutils TIMEFMT = '%d-%m-%y %H:%M:%S' @@ -53,17 +53,17 @@ class LogCtx(object): ] ) if exc_value: - raise exc_type, exc_value, traceback + six.reraise(exc_type, exc_value, traceback) def suppress(self): self.suppressed = True def dump(self, data, hexdump): if hexdump: - for line in netlib.utils.hexdump(data): + for line in strutils.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): |