Remove empty lines

This commit is contained in:
ZyX 2015-02-01 12:08:09 +03:00
parent 0db8154b9a
commit c3e541d16a
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ with codecs.open(fname, 'r', encoding='utf-8') as R:
if line == '\033[?1h\033=\033[?25l\033[1A\n':
line = ''
line = IPYPY_DEANSI_RE.subn('', line)[0]
if line == '\n':
line = ''
if line.startswith(('>',)):
line = ''
elif line == '-> self.quitting = 1\n':