Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecation warning with python 3.11 #164

Open
hannob opened this issue Jul 5, 2023 · 0 comments
Open

deprecation warning with python 3.11 #164

hannob opened this issue Jul 5, 2023 · 0 comments

Comments

@hannob
Copy link

hannob commented Jul 5, 2023

Version information

Git snapshot.

Steps to replicate

  1. run "pyzor ping" with PYTHONWARNINGS=d variable set.

Actual result

It shows a deprecation warning about the warn method of the logger and a warning about an unclosed socket:

$ PYTHONWARNINGS=d pyzor ping
/usr/lib/python3.11/site-packages/pyzor/config.py:170: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  log.warn("No accounts are setup.  All commands will be executed by "
/usr/lib/python3.11/site-packages/pyzor/client.py:258: ResourceWarning: unclosed <socket.socket fd=3, family=2, type=2, proto=17, laddr=('0.0.0.0', 44911)>
  response = self.routine(*args, **kwargs)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
public.pyzor.org:24441	(200, 'OK')

Expected result

No warnings.

Other notes

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 a pull request may close this issue.

1 participant