google-code-export / django-syncr

Automatically exported from code.google.com/p/django-syncr
0 stars 0 forks source link

DeliciousSyncr: ElementTree deprecation warning #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run DeliciousSyncr.syncRecent(), .syncAll() or .syncBookmarks()
2.
3.

What is the expected output? What do you see instead?
Expected STDERR: None
Actual STDERR:
"/lib/python2.5/site-packages/elementtree/ElementTree.py:374:
DeprecationWarning: This method will be removed in future versions. Use
'list(elem)' or iteration over elem instead."

What version of the product are you using? On what operating system?
In ElementTree v1.3a2, the method getchildren() is being deprecated. The
code suggests iterating over "list(elem)" instead of "elem.getchildren()".
I fixed my local DeliciousSyncr by replacing the three lines (115, 129,
155) containing "for post in root.getchildren():" with "for post in
list(root):".

Please provide any additional information below.

Original issue reported on code.google.com by drew.eng...@gmail.com on 15 Aug 2008 at 4:03

GoogleCodeExporter commented 9 years ago
Thanks for the note! Have fixed and commited to svn.

Original comment by jesse.l...@gmail.com on 17 Aug 2008 at 3:42