pythonで改行文字を消したい。replace()というのがあるようだ。
参考
http://orangain.hatenablog.com/entry/20100503/1272900555
test.py
src="set,mon,192.168.10.8,6000\n"
work=src.replace("\n", "")
print "[", src, "]"
print "[", work, "]"
結果
Success time: 0.03 memory: 44680 signal:0
[ set,mon,192.168.10.8,6000
]
[ set,mon,192.168.10.8,6000 ]