Remove translation of internal error in VCard export/import
svn: r16792
This commit is contained in:
parent
2b72a71a6e
commit
63692cd571
@ -121,8 +121,8 @@ class VCardWriter(object):
|
|||||||
elif type(data) == type(()):
|
elif type(data) == type(()):
|
||||||
return tuple(map(VCardWriter.esc, data))
|
return tuple(map(VCardWriter.esc, data))
|
||||||
else:
|
else:
|
||||||
raise TypeError(_("VCard escaping is not implemented for "
|
raise TypeError("VCard escaping is not implemented for "
|
||||||
"data type %s.") % str(type(data)))
|
"data type %s." % str(type(data)))
|
||||||
|
|
||||||
def __init__(self, database, filename, option_box=None, callback=None):
|
def __init__(self, database, filename, option_box=None, callback=None):
|
||||||
self.db = database
|
self.db = database
|
||||||
|
@ -182,8 +182,8 @@ class VCardParser(object):
|
|||||||
elif type(data) == type([]):
|
elif type(data) == type([]):
|
||||||
return list(map(VCardParser.unesc, data))
|
return list(map(VCardParser.unesc, data))
|
||||||
else:
|
else:
|
||||||
raise TypeError(_("VCard unescaping is not implemented for "
|
raise TypeError("VCard unescaping is not implemented for "
|
||||||
"data type %s.") % str(type(data)))
|
"data type %s." % str(type(data)))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def count_escapes(strng):
|
def count_escapes(strng):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user