Replace \n to \r

This commit is contained in:
Marcel Nijenhof
2019-02-13 16:09:04 +01:00
parent 20abc37e32
commit 951f2cdf9a

2
siprun
View File

@@ -38,7 +38,7 @@ def main():
with open(cmdfile, "r") as f: with open(cmdfile, "r") as f:
for cmd in f: for cmd in f:
print("> [%s]" % (cmd.strip('\n'))) print("> [%s]" % (cmd.strip('\n')))
lmwsip.send(cmd) lmwsip.send(cmd.replace('\n', '\r'))
print("< [%s]" % (lmwsip.recv().decode('utf-8').strip('\r'))) print("< [%s]" % (lmwsip.recv().decode('utf-8').strip('\r')))
f.close() f.close()