Skip to content

Commit e17557f

Browse files
authored
Support Python3.11 (#1246)
* Remove deprecated allow_reuse_address from UDP * Add Python3.11 to CI
1 parent 4a73184 commit e17557f

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666
lint: 'no'
6767
- version: '3.10'
6868
lint: 'no'
69+
- version: '3.11'
70+
lint: 'no'
6971
- version: pypy-3.8
7072
lint: 'no'
7173
exclude:

examples/server_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ async def run_async_server(args):
167167
# custom_functions=[], # allow custom handling
168168
framer=args.framer, # The framer strategy to use
169169
# handler=None, # handler for each session
170-
# TBD allow_reuse_address=True, # allow the reuse of an address
171170
# ignore_missing_slaves=True, # ignore request to a missing slave
172171
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
173172
# timeout=1, # waiting time for request to complete

examples/server_sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def run_sync_server(args):
8484
# custom_functions=[], # allow custom handling
8585
framer=args.framer, # The framer strategy to use
8686
# TBD handler=None, # handler for each session
87-
# TBD allow_reuse_address=True, # allow the reuse of an address
8887
# ignore_missing_slaves=True, # ignore request to a missing slave
8988
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
9089
# timeout=1, # waiting time for request to complete

pymodbus/server/async_io.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ def __init__(
689689
identity=None,
690690
address=None,
691691
handler=None,
692-
allow_reuse_address=False,
693692
allow_reuse_port=False,
694693
defer_start=False, # pylint: disable=unused-argument
695694
backlog=20, # pylint: disable=unused-argument
@@ -737,7 +736,6 @@ def __init__(
737736
self.serving = self.loop.create_future()
738737
self.factory_parms = {
739738
"local_addr": self.address,
740-
"reuse_address": allow_reuse_address,
741739
"reuse_port": allow_reuse_port,
742740
"allow_broadcast": True,
743741
}

0 commit comments

Comments
 (0)