mirror of
https://github.com/romanz/amodem.git
synced 2026-04-01 17:26:49 +08:00
dsp: don't use dict comprehension
This commit is contained in:
@@ -130,7 +130,7 @@ class MODEM(object):
|
||||
self.symbols = symbols
|
||||
self.bits_per_symbol = bits_per_symbol
|
||||
|
||||
bits_map = {symbol: bits for bits, symbol in self.encode_map.items()}
|
||||
bits_map = dict((symbol, bits) for bits, symbol in self.encode_map.items())
|
||||
self.decode_list = [(s, bits_map[s]) for s in self.symbols]
|
||||
|
||||
def encode(self, bits):
|
||||
|
||||
Reference in New Issue
Block a user