diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-02 12:31:41 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-02 12:31:41 +1200 |
commit | cccdc9842648518de7ee48ce461801954fc334c8 (patch) | |
tree | 288941673dc0db7ffe96be55ae2c34a1ce5db916 /pathod/log.py | |
parent | eaa3b308f7bb48256ccf56ea07d008fa5f9dd6ad (diff) | |
download | mitmproxy-cccdc9842648518de7ee48ce461801954fc334c8.tar.gz mitmproxy-cccdc9842648518de7ee48ce461801954fc334c8.tar.bz2 mitmproxy-cccdc9842648518de7ee48ce461801954fc334c8.zip |
Utils reorganisation: add netlib.strutils
Extract a number of string and format-related functions to netlib.strutils.
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): |