Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Use sys.platform rather than the platform module
Browse files Browse the repository at this point in the history
Found in issue on mypy: python/mypy#8547 (comment)
  • Loading branch information
trickeydan committed Nov 9, 2021
1 parent e249cc5 commit 1836787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions j5/boards/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import atexit
import logging
import os
import platform
import signal
import sys
from abc import ABCMeta, abstractmethod
from types import FrameType
from typing import TYPE_CHECKING, Dict, Optional, Set, Type, TypeVar
Expand Down Expand Up @@ -115,7 +115,7 @@ def new_signal_handler(signal_type: signal.Signals, frame: FrameType) -> None:
terminal_signals = [signal.SIGINT, signal.SIGTERM]

# Add SIGHUP on systems that support it
if platform.system() != "Windows":
if sys.platform != "win32":
terminal_signals.append(signal.SIGHUP)

for signal_type in terminal_signals:
Expand Down

0 comments on commit 1836787

Please sign in to comment.