mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
- Add coding statement
- Import all modules in one line where possible
- Order: __future__, typing, plain imports, from imports,
janware modules
Signed-off-by: Jan Lindemann <jan@janware.com>
13 lines
322 B
Python
13 lines
322 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import asyncio
|
|
|
|
from ..Signals import Signals as SignalsBase
|
|
|
|
class Signals(SignalsBase):
|
|
|
|
# reimplemented from Signals
|
|
@classmethod
|
|
def _add_handler(cls, signal, handler):
|
|
loop = asyncio.get_running_loop()
|
|
loop.add_signal_handler(signal, handler, None) # None = *args
|