Skip to content

Commit

Permalink
ignores the BrokenPipeError
Browse files Browse the repository at this point in the history
  • Loading branch information
christophkloeffel authored and christophkloeffel committed Sep 11, 2024
1 parent a94ef14 commit 4ef9550
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions trlc/trlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
# You should have received a copy of the GNU General Public License
# along with TRLC. If not, see <https://www.gnu.org/licenses/>.

import re
import os
import sys
import json
import argparse
import json
import os
import re
import signal
import subprocess
import sys
from fractions import Fraction

from trlc import ast
from trlc import lint
from trlc.errors import TRLC_Error, Location, Message_Handler, Kind
from trlc.parser import Parser
from trlc import ast, lint
from trlc.errors import Kind, Location, Message_Handler, TRLC_Error
from trlc.lexer import Token_Stream
from trlc.version import TRLC_VERSION, BUGS_URL
from trlc.parser import Parser
from trlc.version import BUGS_URL, TRLC_VERSION

# pylint: disable=unused-import
try:
Expand All @@ -40,6 +40,9 @@
except ImportError: # pragma: no cover
VCG_API_AVAILABLE = False

# Ignore SIGPIPE (Broken pipe) signal
signal.signal(signal.SIGPIPE, signal.SIG_DFL)


class Source_Manager:
"""Dependency and source manager for TRLC.
Expand Down

0 comments on commit 4ef9550

Please sign in to comment.