From deric.lists at gmail.com Fri Feb 20 05:31:08 2009 From: deric.lists at gmail.com (Daniel Ericsson) Date: Fri, 20 Feb 2009 05:31:08 +0100 Subject: [icalendar-dev] DeprecationWarning on Python 2.6.1 Message-ID: <80bd4430902192031w2993bbeep5003f418f672937b@mail.gmail.com> I'm getting: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/icalendar/prop.py:1071: DeprecationWarning: object.__init__() takes no parameters unicode.__init__(self, *args, **kwargs) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/icalendar/prop.py:891: DeprecationWarning: object.__init__() takes no parameters str.__init__(self, *args, **kwargs) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/icalendar/prop.py:838: DeprecationWarning: object.__init__() takes no parameters str.__init__(self, *args, **kwargs) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/icalendar/prop.py:533: DeprecationWarning: object.__init__() takes no parameters int.__init__(self, *args, **kwargs) When using icalendar under Python 2.6.1, it's due to this change: http://bugs.python.org/issue1683368 Patch attached, tested under 2.6.1 and 2.5.4 Also the sets module is depracated, Attaching patch for test.py to use the builint set instead (introduced in 2.4). -- Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: prop.py.diff Type: application/octet-stream Size: 2293 bytes Desc: not available Url : http://codespeak.net/pipermail/icalendar-dev/attachments/20090220/214957d1/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: test.py.diff Type: application/octet-stream Size: 1601 bytes Desc: not available Url : http://codespeak.net/pipermail/icalendar-dev/attachments/20090220/214957d1/attachment-0001.obj