Skip to content

Commit eba3a81

Browse files
committed
Don't pass loop to asyncio.wait()
1 parent 5a79996 commit eba3a81

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.6, 3.7, 3.8]
18+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1919

2020
steps:
2121
- uses: actions/checkout@v2

jupyter_console/ptshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def mainloop(self):
673673
# wish to include external content
674674
tasks.append(self.handle_external_iopub(loop=loop))
675675

676-
main_task = asyncio.wait(tasks, loop=loop, return_when=asyncio.FIRST_COMPLETED)
676+
main_task = asyncio.wait(tasks, return_when=asyncio.FIRST_COMPLETED)
677677
_, pending = loop.run_until_complete(main_task)
678678

679679
for task in pending:

0 commit comments

Comments
 (0)