mirror of
https://github.com/romanz/amodem.git
synced 2026-03-20 09:29:31 +08:00
util: move to_ascii() from __main__
This commit is contained in:
@@ -64,3 +64,7 @@ def frame(*msgs):
|
||||
res.write(msg)
|
||||
msg = res.getvalue()
|
||||
return pack('L', len(msg)) + msg
|
||||
|
||||
|
||||
def to_ascii(s):
|
||||
return s.decode('ascii')
|
||||
|
||||
Reference in New Issue
Block a user