mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-29 12:45:00 +08:00
Shift a bunch more string-related functions to strutils
This commit is contained in:
@@ -2,9 +2,6 @@ import datetime
|
||||
|
||||
import six
|
||||
|
||||
import netlib.utils
|
||||
import netlib.tcp
|
||||
import netlib.http
|
||||
from netlib import strutils
|
||||
|
||||
TIMEFMT = '%d-%m-%y %H:%M:%S'
|
||||
@@ -63,7 +60,7 @@ class LogCtx(object):
|
||||
|
||||
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 strutils.clean_bin(data).split("\n"):
|
||||
|
||||
Reference in New Issue
Block a user