keijack / python-eureka-client

A eureka client written in python. Support registering your python component to Eureka Server, as well as calling remote services by pulling the the Eureka registry.
MIT License
184 stars 43 forks source link

DeprecationWarning: This method will be removed #23

Closed dinuta closed 4 years ago

dinuta commented 4 years ago

Hi man,

I use your eureka connector for multiple services and i keep receiving a deprecating warning. You can see the log here: https://travis-ci.org/dinuta/netflixoss-eureka/builds/611704241

/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/py_eureka_client/eureka_client.py:390: DeprecationWarning: This method will be removed in future versions. Use 'list(elem)' or iteration over elem instead. for child_node in xml_node.getchildren(): /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/py_eureka_client/eureka_client.py:481: DeprecationWarning: This method will be removed in future versions. Use 'list(elem)' or iteration over elem instead. for child_node in xml_node.getchildren(): /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/py_eureka_client/eureka_client.py:474: DeprecationWarning: This method will be removed in future versions. Use 'list(elem)' or iteration over elem instead. for child_node in xml_node.getchildren(): Getting apps from eureka server http://localhost:8081/eureka/v2 ...

keijack commented 4 years ago

@dinuta, thanks. I've replaced that deprecated method to the recommended method. Please upgrade to 0.7.4.

dinuta commented 4 years ago

Thanks man, Looking good on my latest build: https://travis-ci.org/dinuta/netflixoss-eureka/builds/611768354. No warnings anymore. As you probably saw, i'm using Python 3.7.

I think you can close this one.