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(()):
|
||||
return tuple(map(VCardWriter.esc, data))
|
||||
else:
|
||||
raise TypeError(_("VCard escaping is not implemented for "
|
||||
"data type %s.") % str(type(data)))
|
||||
raise TypeError("VCard escaping is not implemented for "
|
||||
"data type %s." % str(type(data)))
|
||||
|
||||
def __init__(self, database, filename, option_box=None, callback=None):
|
||||
self.db = database
|
||||
|
@ -182,8 +182,8 @@ class VCardParser(object):
|
||||
elif type(data) == type([]):
|
||||
return list(map(VCardParser.unesc, data))
|
||||
else:
|
||||
raise TypeError(_("VCard unescaping is not implemented for "
|
||||
"data type %s.") % str(type(data)))
|
||||
raise TypeError("VCard unescaping is not implemented for "
|
||||
"data type %s." % str(type(data)))
|
||||
|
||||
@staticmethod
|
||||
def count_escapes(strng):
|
||||
|
Loading…
Reference in New Issue
Block a user