Skip to content

Commit ddceaaa

Browse files
committed
Use Python 3.11
1 parent 17ca217 commit ddceaaa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "qToggleServer ports backed by system commands"
55
authors = [
66
{name = "Calin Crisan", email = "ccrisan@gmail.com"},
77
]
8-
requires-python = "==3.10.*"
8+
requires-python = ">=3.11"
99
readme = "README.md"
1010
license = {text = "Apache 2.0"}
1111
dependencies = []
@@ -18,7 +18,6 @@ dev = [
1818

1919
[tool.ruff]
2020
line-length = 120
21-
target-version = "py310"
2221
lint.extend-select = ["I", "RUF022", "ANN"]
2322
lint.extend-ignore = ["ANN002", "ANN003", "ANN401"]
2423
lint.isort.lines-after-imports = 2

qtoggleserver/cmdline/peripheral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def run_command(self, cmd: str, env: dict[str, str] | None) -> tuple[str,
5555

5656
try:
5757
stdout, stderr = await asyncio.wait_for(p.communicate(), timeout=self._timeout)
58-
except asyncio.TimeoutError:
58+
except TimeoutError:
5959
raise CommandTimeout()
6060

6161
if stderr:

0 commit comments

Comments
 (0)