google-code-export / django-syncr

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

Delicious Syncr - ElementTree import error in python 2.5 #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm pretty new to django, svn and google code, so apologies if I've
made a beginner mistake/submitted wrongly etc.

I had a small problem with the file app/delicious.py. I'm running python 2.5.

In the shell, the command:
import elementtree.ElementTree as ET

gives the error message
ImportError: No module named elementtree.ElementTree

Looking at http://effbot.org/zone/element-index.htm, in python 2.5, the
correct command is:
import xml.etree.ElementTree as ET

==============

I've attached a diff file with the changes I made.

Original issue reported on code.google.com by alasdair...@gmail.com on 14 Jan 2009 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the patch! I've updated the svn version with this change.

Original comment by jesse.l...@gmail.com on 20 Jan 2009 at 2:07

GoogleCodeExporter commented 9 years ago

Original comment by jesse.l...@gmail.com on 20 Jan 2009 at 2:08