Skip to content

Commit e65622c

Browse files
committed
Use correct TimeoutError alias from the concurrent.futures module
1 parent 32a4f05 commit e65622c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/qasync/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"asyncWrap",
1818
]
1919

20-
from ast import Not
2120
import asyncio
2221
import contextlib
2322
import functools
@@ -28,7 +27,7 @@
2827
import os
2928
import sys
3029
import time
31-
from concurrent.futures import CancelledError, Future, TimeoutError
30+
from concurrent.futures import Future
3231
from queue import Queue
3332
from weakref import WeakSet
3433

tests/test_qthreadexec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# © 2014 Mark Harviston <mark.harviston@gmail.com>
33
# © 2014 Arve Knudsen <arve.knudsen@gmail.com>
44
# BSD License
5-
import time
65
import logging
76
import threading
7+
import time
88
import weakref
9+
from concurrent.futures import TimeoutError
910

1011
import pytest
1112

0 commit comments

Comments
 (0)