Commit 7d599482 authored by Fred Drake's avatar Fred Drake

When piping output into a pager like "less", quiting the pager before

the output was consumed would cause and exception to be raise in
logmerge; suppress this specific error, because it's not helpful.
parent b785518d
...@@ -34,7 +34,7 @@ XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7 ...@@ -34,7 +34,7 @@ XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
from their output. from their output.
""" """
import os, sys, getopt, re import os, sys, errno, getopt, re
sep1 = '='*77 + '\n' # file separator sep1 = '='*77 + '\n' # file separator
sep2 = '-'*28 + '\n' # revision separator sep2 = '-'*28 + '\n' # revision separator
...@@ -177,4 +177,8 @@ def format_output(database): ...@@ -177,4 +177,8 @@ def format_output(database):
prev.append((date, working_file, rev, author)) prev.append((date, working_file, rev, author))
prevtext = text prevtext = text
main() try:
main()
except IOError, e:
if e.errno != errno.EPIPE:
raise
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment