Hello,
We are getting the following DeprecationWarnings when using this library with a very recent python:
/home/localuser/workspace/pyapp/dependencies/lib/python3.10/site-packages/robotbackgroundlogger.py:83: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
/home/localuser/workspace/pyapp/dependencies/lib/python3.10/site-packages/robotbackgroundlogger.py:83: DeprecationWarning: getName() is deprecated, get the name attribute instead
I noticed both methods have a replacement since python 2.6: https://docs.python.org/2.7/library/threading.html
threading.current_thread()
threading.currentThread()
[...snip...]
Changed in version 2.6: Added current_thread() spelling.
name
[...snip...]
New in version 2.6.
getName()
setName()
Pre-2.6 API for name.
I noticed there was a revert circa 2014 to use the pre 2.6 APIs: e880289
Is it possible to fix these DeprecationWarnings if supporting Python 2.5 is no longer a goal?
I can submit a PR if this is possible.
Thanks a lot!
Hello,
We are getting the following
DeprecationWarnings when using this library with a very recent python:I noticed both methods have a replacement since python 2.6: https://docs.python.org/2.7/library/threading.html
I noticed there was a revert circa 2014 to use the pre 2.6 APIs: e880289
Is it possible to fix these
DeprecationWarnings if supporting Python 2.5 is no longer a goal?I can submit a PR if this is possible.
Thanks a lot!