From cccdc9842648518de7ee48ce461801954fc334c8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 2 Jun 2016 12:31:41 +1200 Subject: Utils reorganisation: add netlib.strutils Extract a number of string and format-related functions to netlib.strutils. --- netlib/websockets/frame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'netlib/websockets') diff --git a/netlib/websockets/frame.py b/netlib/websockets/frame.py index deb0ce33..42196ffb 100644 --- a/netlib/websockets/frame.py +++ b/netlib/websockets/frame.py @@ -7,6 +7,7 @@ import warnings import six from netlib import tcp +from netlib import strutils from netlib import utils from netlib import human from netlib.websockets import protocol @@ -254,7 +255,7 @@ class Frame(object): def __repr__(self): ret = repr(self.header) if self.payload: - ret = ret + "\nPayload:\n" + utils.clean_bin(self.payload).decode("ascii") + ret = ret + "\nPayload:\n" + strutils.clean_bin(self.payload).decode("ascii") return ret def human_readable(self): -- cgit v1.2.3