Skip to content

Commit

Permalink
Support Python3.11 (pymodbus-dev#1246)
Browse files Browse the repository at this point in the history
* Remove deprecated allow_reuse_address from UDP

* Add Python3.11 to CI
  • Loading branch information
alexrudd2 committed Feb 21, 2023
1 parent c96179e commit 7d80fe0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
lint: 'no'
- version: '3.10'
lint: 'no'
- version: '3.11'
lint: 'no'
- version: pypy-3.8
lint: 'no'
exclude:
Expand Down
1 change: 0 additions & 1 deletion examples/server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ async def run_async_server(args):
# custom_functions=[], # allow custom handling
framer=args.framer, # The framer strategy to use
# handler=None, # handler for each session
# TBD allow_reuse_address=True, # allow the reuse of an address
# ignore_missing_slaves=True, # ignore request to a missing slave
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
# timeout=1, # waiting time for request to complete
Expand Down
1 change: 0 additions & 1 deletion examples/server_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def run_sync_server(args):
# custom_functions=[], # allow custom handling
framer=args.framer, # The framer strategy to use
# TBD handler=None, # handler for each session
# TBD allow_reuse_address=True, # allow the reuse of an address
# ignore_missing_slaves=True, # ignore request to a missing slave
# broadcast_enable=False, # treat unit_id 0 as broadcast address,
# timeout=1, # waiting time for request to complete
Expand Down
2 changes: 0 additions & 2 deletions pymodbus/server/async_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ def __init__(
identity=None,
address=None,
handler=None,
allow_reuse_address=False,
allow_reuse_port=False,
defer_start=False, # pylint: disable=unused-argument
backlog=20, # pylint: disable=unused-argument
Expand Down Expand Up @@ -737,7 +736,6 @@ def __init__(
self.serving = self.loop.create_future()
self.factory_parms = {
"local_addr": self.address,
"reuse_address": allow_reuse_address,
"reuse_port": allow_reuse_port,
"allow_broadcast": True,
}
Expand Down

0 comments on commit 7d80fe0

Please sign in to comment.