Browse Source

Delete unused function in gateway.encoding.etf

pull/3/head
Andrei 9 years ago
parent
commit
131ec9dda5
  1. 13
      disco/gateway/encoding/etf.py

13
disco/gateway/encoding/etf.py

@ -1,20 +1,9 @@
import six
from websocket import ABNF from websocket import ABNF
from erlpack import Atom, unpack, pack from erlpack import unpack, pack
from disco.gateway.encoding.base import BaseEncoder 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): class ETFEncoder(BaseEncoder):
TYPE = 'etf' TYPE = 'etf'
OPCODE = ABNF.OPCODE_BINARY OPCODE = ABNF.OPCODE_BINARY

Loading…
Cancel
Save