# HG changeset patch # User Pascal Volk # Date 1270229444 0 # Node ID e88ba0fb12810a354b8bbd550e0679216acbffd3 # Parent 55503d63ba303a61db961eccdaa42c2ef4a18ca5 VMM: check_localpart() use '%s' instead of %r in error messages. diff -r 55503d63ba30 -r e88ba0fb1281 VirtualMailManager/__init__.py --- a/VirtualMailManager/__init__.py Sun Mar 21 09:59:05 2010 +0000 +++ b/VirtualMailManager/__init__.py Fri Apr 02 17:30:44 2010 +0000 @@ -134,12 +134,12 @@ """ if len(localpart) > 64: - raise VMMError(_(u'The local-part %r is too long') % localpart, + raise VMMError(_(u"The local-part '%s' is too long") % localpart, LOCALPART_TOO_LONG) invalid_chars = set(RE_LOCALPART.findall(localpart)) if invalid_chars: i_chars = u''.join((u'"%s" ' % c for c in invalid_chars)) - raise VMMError(_(u"The local-part %(l_part)r contains invalid \ + raise VMMError(_(u"The local-part '%(l_part)s' contains invalid \ characters: %(i_chars)s") % {'l_part': localpart, 'i_chars': i_chars}, LOCALPART_INVALID)