Skip to content

Commit 44dacad

Browse files
authored
Add files via upload
1 parent 7d838a5 commit 44dacad

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Signal capturer.
66

77
## Installation
88

9-
Requires python version 3.5 or later.
9+
Requires python version 3.6 or later.
1010

1111
To install the latest release on [PyPI](https://pypi.org/project/python-fssignal/),
1212
simply run:

fsSignal/fsSignal.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Builtin modules
22
from __future__ import annotations
33
import os, traceback, unittest, signal as _signal
4-
from threading import Timer, Event as Event
4+
from threading import Timer, Event
55
from time import monotonic, sleep
6-
from typing import Callable, Dict, Any, Iterator, Iterable, Optional, Union, NewType
6+
from typing import Callable, Dict, Any, Iterator, Iterable, Optional, Union
77
# Local modules
88
# Program
99
class KillSignal(Exception): pass
@@ -15,7 +15,7 @@ def __init__(self, event:Event, it:Iterable, checkDelay:float=1.0):
1515
self.it:Iterator = it.__iter__()
1616
self.checkDelay:float = checkDelay
1717
self.lastCheck:float = monotonic()
18-
def __iter__(self) -> Any:
18+
def __iter__(self) -> Iterator:
1919
return self
2020
def __next__(self) -> Any:
2121
m:float = monotonic()
@@ -188,13 +188,13 @@ def test_iter(self) -> None:
188188
signal.sleep(0.5, raiseOnKill=True)
189189
d.append(i)
190190
def test_hardkill(self) -> None:
191-
s:list = list(range(5))
192-
d:list = []
193-
i:int
194191
self.killmeTimer()
192+
sleep(0.1)
195193
self.killmeTimer()
194+
sleep(0.1)
196195
self.killmeTimer()
196+
sleep(0.1)
197197
self.rootSignal.forceCounter = 3
198198
with self.assertRaises(KillSignal):
199-
self.rootSignal.sleep(3, raiseOnKill=True)
199+
self.rootSignal.sleep(10, raiseOnKill=True)
200200
self.rootSignal.forceCounter = 10

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@
2222
long_description=open(os.path.join(pwd, "README.md")).read(),
2323
long_description_content_type="text/markdown",
2424
zip_safe=False,
25-
python_requires=">=3.5.0",
25+
python_requires=">=3.6.0",
2626
classifiers=[ # https://pypi.org/pypi?%3Aaction=list_classifiers
2727
"Development Status :: 4 - Beta",
2828
"Topic :: Utilities",
2929
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.5",
3130
"Programming Language :: Python :: 3.6",
3231
"Programming Language :: Python :: 3.7",
3332
"Programming Language :: Python :: 3.8",

0 commit comments

Comments
 (0)