Remove translation of internal error in VCard export/import

svn: r16792
This commit is contained in:
Michiel Nauta 2011-03-09 16:46:18 +00:00
parent 2b72a71a6e
commit 63692cd571
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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):