mirror of
https://github.com/romanz/amodem.git
synced 2026-02-05 16:26:22 +08:00
Drop six dependency
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Install
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest mock pycodestyle coverage pylint six
|
||||
pip install pytest mock pycodestyle coverage pylint
|
||||
pip install -e .
|
||||
|
||||
- name: Lint
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import logging
|
||||
import threading
|
||||
|
||||
import six # since `Queue` module was renamed to `queue` (in Python 3)
|
||||
from queue import Queue
|
||||
|
||||
log = logging.getLogger()
|
||||
|
||||
@@ -11,7 +11,7 @@ log = logging.getLogger()
|
||||
class AsyncReader:
|
||||
def __init__(self, stream, bufsize):
|
||||
self.stream = stream
|
||||
self.queue = six.moves.queue.Queue()
|
||||
self.queue = Queue()
|
||||
self.stop = threading.Event()
|
||||
args = (stream, bufsize, self.queue, self.stop)
|
||||
self.thread = threading.Thread(target=AsyncReader._thread,
|
||||
|
||||
2
setup.py
2
setup.py
@@ -24,7 +24,7 @@ setup(
|
||||
packages=['amodem'],
|
||||
tests_require=['pytest'],
|
||||
cmdclass={'test': PyTest},
|
||||
install_requires=['numpy', 'six'],
|
||||
install_requires=['numpy'],
|
||||
platforms=['POSIX'],
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
Reference in New Issue
Block a user