Skip to content

utilities: Replace telnetlib with socket.#1333

Merged
freyes merged 1 commit intoopenstack-charmers:masterfrom
mkalcok:telnetlib
Dec 18, 2025
Merged

utilities: Replace telnetlib with socket.#1333
freyes merged 1 commit intoopenstack-charmers:masterfrom
mkalcok:telnetlib

Conversation

@mkalcok
Copy link
Contributor

@mkalcok mkalcok commented Dec 17, 2025

telnetlib is getting removed from standard python library in python 3.13[0]. While there are 3rd party replacements, it was used only to check if a port is open. We can use built-in socket library for that.

[0] https://docs.python.org/3.13/library/telnetlib.html

telnetlib is getting removed from standard python library in python 3.13[0].
While there are 3rd party replacements, it was used only to check if a port is
open. We can use built-in socket library for that.

[0] https://docs.python.org/3.13/library/telnetlib.html

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
@mkalcok mkalcok requested a review from freyes December 17, 2025 21:48
Copy link
Member

@freyes freyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for this patch.

@freyes freyes merged commit feed706 into openstack-charmers:master Dec 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants