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 Warnings #33

Closed
helioshk opened this issue Jun 30, 2023 · 1 comment
Closed

Deprecation Warnings #33

helioshk opened this issue Jun 30, 2023 · 1 comment

Comments

@helioshk
Copy link

helioshk commented Jun 30, 2023

I upgraded to debian bookworm and now i get depreciation warnings when running digiskimmer:

fetch.py:30: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
threading.currentThread().setName("main")

fetch.py:30: DeprecationWarning: setName() is deprecated, set the name attribute instead
threading.currentThread().setName("main")

etch.py:200: DeprecationWarning: getName() is deprecated, get the name attribute instead
if r.getName() == "%s-%s" % (st, band):

This should fix it:

30c30
< threading.currentThread().setName("main")
---
> threading.current_thread().name = "main"
136c136
<     [t.join() for t in threading.enumerate() if t is not threading.currentThread()]
---
>     [t.join() for t in threading.enumerate() if t is not threading.current_thread()]
200c200
<                             if r.getName() == "%s-%s" % (st, band):
---
>                             if r.name == "%s-%s" % (st, band):
lazywalker added a commit that referenced this issue Aug 8, 2023
@lazywalker
Copy link
Owner

#32 and the recently commit fix this issue. thanks :)

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

No branches or pull requests

2 participants