Remove Python 3.4 support (#3147)

Closes #3123
This commit is contained in:
Sebastian Rittau
2019-07-27 10:58:21 +02:00
committed by GitHub
parent 4697adcb1a
commit 9ccf9356bf
55 changed files with 988 additions and 1266 deletions

View File

@@ -13,77 +13,65 @@ ITIMER_VIRTUAL: int = ...
NSIG: int = ...
if sys.version_info >= (3, 5):
class Signals(IntEnum):
SIGABRT = ...
SIGALRM = ...
SIGBREAK = ... # Windows
SIGBUS = ...
SIGCHLD = ...
SIGCLD = ...
SIGCONT = ...
SIGEMT = ...
SIGFPE = ...
SIGHUP = ...
SIGILL = ...
SIGINFO = ...
SIGINT = ...
SIGIO = ...
SIGIOT = ...
SIGKILL = ...
SIGPIPE = ...
SIGPOLL = ...
SIGPROF = ...
SIGPWR = ...
SIGQUIT = ...
SIGRTMAX = ...
SIGRTMIN = ...
SIGSEGV = ...
SIGSTOP = ...
SIGSYS = ...
SIGTERM = ...
SIGTRAP = ...
SIGTSTP = ...
SIGTTIN = ...
SIGTTOU = ...
SIGURG = ...
SIGUSR1 = ...
SIGUSR2 = ...
SIGVTALRM = ...
SIGWINCH = ...
SIGXCPU = ...
SIGXFSZ = ...
class Signals(IntEnum):
SIGABRT = ...
SIGALRM = ...
SIGBREAK = ... # Windows
SIGBUS = ...
SIGCHLD = ...
SIGCLD = ...
SIGCONT = ...
SIGEMT = ...
SIGFPE = ...
SIGHUP = ...
SIGILL = ...
SIGINFO = ...
SIGINT = ...
SIGIO = ...
SIGIOT = ...
SIGKILL = ...
SIGPIPE = ...
SIGPOLL = ...
SIGPROF = ...
SIGPWR = ...
SIGQUIT = ...
SIGRTMAX = ...
SIGRTMIN = ...
SIGSEGV = ...
SIGSTOP = ...
SIGSYS = ...
SIGTERM = ...
SIGTRAP = ...
SIGTSTP = ...
SIGTTIN = ...
SIGTTOU = ...
SIGURG = ...
SIGUSR1 = ...
SIGUSR2 = ...
SIGVTALRM = ...
SIGWINCH = ...
SIGXCPU = ...
SIGXFSZ = ...
class Handlers(IntEnum):
SIG_DFL = ...
SIG_IGN = ...
class Handlers(IntEnum):
SIG_DFL = ...
SIG_IGN = ...
SIG_DFL = Handlers.SIG_DFL
SIG_IGN = Handlers.SIG_IGN
SIG_DFL = Handlers.SIG_DFL
SIG_IGN = Handlers.SIG_IGN
class Sigmasks(IntEnum):
SIG_BLOCK = ...
SIG_UNBLOCK = ...
SIG_SETMASK = ...
class Sigmasks(IntEnum):
SIG_BLOCK = ...
SIG_UNBLOCK = ...
SIG_SETMASK = ...
SIG_BLOCK = Sigmasks.SIG_BLOCK
SIG_UNBLOCK = Sigmasks.SIG_UNBLOCK
SIG_SETMASK = Sigmasks.SIG_SETMASK
SIG_BLOCK = Sigmasks.SIG_BLOCK
SIG_UNBLOCK = Sigmasks.SIG_UNBLOCK
SIG_SETMASK = Sigmasks.SIG_SETMASK
_SIG = Signals
_SIGNUM = Union[int, Signals]
_HANDLER = Union[Callable[[Signals, FrameType], None], int, Handlers, None]
else:
SIG_DFL: int = ...
SIG_IGN: int = ...
SIG_BLOCK: int = ...
SIG_UNBLOCK: int = ...
SIG_SETMASK: int = ...
_SIG = int
_SIGNUM = int
_HANDLER = Union[Callable[[int, FrameType], None], int, None]
_SIG = Signals
_SIGNUM = Union[int, Signals]
_HANDLER = Union[Callable[[Signals, FrameType], None], int, Handlers, None]
SIGABRT: _SIG = ...
SIGALRM: _SIG = ...