From 76fc1f75f90925be128820e61a3d3e31c4c2ca06 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Thu, 19 Nov 2009 11:09:51 -0500 Subject: error strings in documentation were missing unicode specifier error strings in documentation were missing unicode specifier --- ipalib/errors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index 1c358cd6f..ca1851c56 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -390,7 +390,7 @@ class NetworkError(PublicError): For example: - >>> raise NetworkError(uri='ldap://localhost:389', error='Connection refused') + >>> raise NetworkError(uri='ldap://localhost:389', error=u'Connection refused') Traceback (most recent call last): ... NetworkError: cannot connect to 'ldap://localhost:389': Connection refused @@ -694,7 +694,7 @@ class ConversionError(InvocationError): For example: - >>> raise ConversionError(name='age', error='must be an integer') + >>> raise ConversionError(name='age', error=u'must be an integer') Traceback (most recent call last): ... ConversionError: invalid 'age': must be an integer @@ -710,7 +710,7 @@ class ValidationError(InvocationError): For example: - >>> raise ValidationError(name='sn', error='can be at most 128 characters') + >>> raise ValidationError(name='sn', error=u'can be at most 128 characters') Traceback (most recent call last): ... ValidationError: invalid 'sn': can be at most 128 characters -- cgit