From 131ec9dda5e16f223251a0daf14924da5a9d3f18 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 6 Oct 2016 23:26:13 -0500 Subject: [PATCH] Delete unused function in gateway.encoding.etf --- disco/gateway/encoding/etf.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/disco/gateway/encoding/etf.py b/disco/gateway/encoding/etf.py index fd0cdc4..41445bd 100644 --- a/disco/gateway/encoding/etf.py +++ b/disco/gateway/encoding/etf.py @@ -1,20 +1,9 @@ -import six - from websocket import ABNF -from erlpack import Atom, unpack, pack +from erlpack import unpack, pack from disco.gateway.encoding.base import BaseEncoder -def make_keys_atom(obj): - res = {} - for k, v in six.iteritems(obj): - if isinstance(v, dict): - v = make_keys_atom(v) - res[Atom(k)] = v - return res - - class ETFEncoder(BaseEncoder): TYPE = 'etf' OPCODE = ABNF.OPCODE_BINARY