Skip to content

Commit 7dee5b5

Browse files
Run CI on 3.11 (#33)
1 parent f6e791f commit 7dee5b5

File tree

3 files changed

+4
-49
lines changed

3 files changed

+4
-49
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: set up python
1919
uses: actions/setup-python@v1
2020
with:
21-
python-version: '3.9'
21+
python-version: '3.11'
2222

2323
- name: install dependencies
2424
run: |
@@ -49,7 +49,7 @@ jobs:
4949
- name: set up python
5050
uses: actions/setup-python@v1
5151
with:
52-
python-version: '3.9'
52+
python-version: '3.11'
5353

5454
- name: install
5555
run: |

HISTORY.rst

Lines changed: 0 additions & 43 deletions
This file was deleted.

pydf/wkhtmltopdf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ def _convert_args(**py_args):
4747

4848

4949
class AsyncPydf:
50-
def __init__(self, *, max_processes=20, loop=None, cache_dir=DFT_CACHE_DIR):
51-
self.semaphore = asyncio.Semaphore(value=max_processes, loop=loop)
52-
self.loop = loop
50+
def __init__(self, *, max_processes=20, cache_dir=DFT_CACHE_DIR):
51+
self.semaphore = asyncio.Semaphore(value=max_processes)
5352
if not cache_dir.exists():
5453
Path.mkdir(cache_dir)
5554
self.cache_dir = cache_dir
@@ -62,7 +61,6 @@ async def generate_pdf(self, html, **cmd_args):
6261
stdin=asyncio.subprocess.PIPE,
6362
stdout=asyncio.subprocess.PIPE,
6463
stderr=asyncio.subprocess.PIPE,
65-
loop=self.loop,
6664
)
6765
p.stdin.write(html.encode())
6866
p.stdin.close()

0 commit comments

Comments
 (0)