[Calendarserver-maintainers] Bug#569273: vobject.base.ParseError: At line 5: error: illegal escape sequence: '\, '

Stuart Pook slp12227 at pook.it
Wed Jun 1 13:38:56 UTC 2011


I still have this bug. Would it be possible to upload a new version that fixes this bug? I'm using python-vobject 0.8.1c-3 which appears to be the latest version.

:; python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vobject
>>> vobject.readOne('BEGIN:VCARD\r\nVERSION:3.0\r\nFN:fn\r\nN:n;;;;\r\nORG:Name\\, A&B.;\r\nEND:VCARD\r\n')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 1082, in readOne
    ignoreUnreadable, allowQP).next()
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 1059, in readComponents
    if transform: component.transformChildrenToNative()
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 601, in transformChildrenToNative
    childArray[i]=childArray[i].transformToNative()
  File "/usr/lib/pymodules/python2.6/vobject/base.py", line 122, in transformToNative
    return self.behavior.transformToNative(self)
  File "/usr/lib/pymodules/python2.6/vobject/vcard.py", line 290, in transformToNative
    obj.value = splitFields(obj.value)
  File "/usr/lib/pymodules/python2.6/vobject/vcard.py", line 213, in splitFields
    stringToTextValues(string, listSeparator=';', charList=';')]
  File "/usr/lib/pymodules/python2.6/vobject/icalendar.py", line 1681, in stringToTextValues
    raise ParseError("error: illegal escape sequence: '\\%s'" % (char,))
vobject.base.ParseError: At line 5: error: illegal escape sequence: '\,'





More information about the Calendarserver-maintainers mailing list