irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
303 stars 36 forks source link

Remove deprecation warning in 3.10 #59

Closed sequoiap closed 2 years ago

sequoiap commented 2 years ago

Smallest pull request in the history of pull requests:

server.py:289 used threading.Event's isSet(), which is deprecated in Python 3.10 in favor of is_set(). I have modified this one line. server.py:312 is already using is_set(), so this brings more consistency, anyway. No reason to keep isSet().

I'm using Python 3.10, and got tired of the deprecation warning every time I imported my package or used anything from the server module. Hence, this small update. :smile:

irmen commented 2 years ago

haha, fantastic! Thanks for spotting this one.