Skip to content

Commit 1d2cafb

Browse files
committed
Require Python 3.5
1 parent 7c874f6 commit 1d2cafb

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

Diff for: .github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
os:
2323
- ubuntu-20.04
2424
python:
25-
- "2.7"
25+
- "3.5"
2626
- "3.6"
2727
- "3.7"
2828
- "3.8"

Diff for: setup.cfg

-2
This file was deleted.

Diff for: setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ def run(self):
3333
author="Min RK",
3434
author_email="[email protected]",
3535
description="Capture C-level output in context managers",
36-
install_requires=["selectors2; python_version<'3.4'"],
3736
long_description=long_description,
3837
long_description_content_type="text/markdown",
3938
url="https://github.com/minrk/wurlitzer",
4039
py_modules=["wurlitzer"],
41-
python_requires=">=2.7",
40+
python_requires=">=3.5",
4241
license="MIT",
4342
cmdclass={
4443
"bdist_egg": bdist_egg if "bdist_egg" in sys.argv else bdist_egg_disabled
@@ -47,7 +46,6 @@ def run(self):
4746
"Development Status :: 4 - Beta",
4847
"Intended Audience :: Developers",
4948
"License :: OSI Approved :: MIT License",
50-
"Programming Language :: Python :: 2.7",
5149
"Programming Language :: Python :: 3",
5250
],
5351
)

Diff for: wurlitzer.py

+4-14
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,14 @@
1818
import errno
1919
import io
2020
import os
21-
from contextlib import contextmanager
22-
from fcntl import F_GETFL, F_SETFL, fcntl
23-
24-
try:
25-
from queue import Queue
26-
except ImportError:
27-
from Queue import Queue
28-
29-
try:
30-
import selectors
31-
except ImportError:
32-
# py < 3.4
33-
import selectors2 as selectors
34-
21+
import selectors
3522
import sys
3623
import threading
3724
import time
3825
import warnings
26+
from contextlib import contextmanager
27+
from fcntl import F_GETFL, F_SETFL, fcntl
28+
from queue import Queue
3929

4030
libc = ctypes.CDLL(None)
4131

0 commit comments

Comments
 (0)