When using `rc` remove “read() failed” messages

This commit is contained in:
ZyX 2015-01-09 17:40:05 +03:00
parent 1a2e741337
commit 0a8e94d031
1 changed files with 3 additions and 0 deletions

View File

@ -98,4 +98,7 @@ with codecs.open(fname, 'r', encoding='utf-8') as R:
line = IPYPY_DEANSI_RE.subn('', line)[0]
if line == '\n' and not was_empty:
line = ''
elif shell == 'rc':
if line == 'read() failed: Connection reset by peer\n':
line = ''
W.write(line)