Shift a bunch more string-related functions to strutils

This commit is contained in:
Aldo Cortesi
2016-06-02 13:03:37 +12:00
parent 31012d782f
commit 09da1febbd
9 changed files with 82 additions and 87 deletions

View File

@@ -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"):