diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cryptography/x509/name.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/cryptography/x509/name.py b/src/cryptography/x509/name.py index dac5639e..ca2a1754 100644 --- a/src/cryptography/x509/name.py +++ b/src/cryptography/x509/name.py @@ -253,4 +253,7 @@ class Name(object):          return sum(len(rdn) for rdn in self._attributes)      def __repr__(self): -        return "<Name({})>".format(self.rfc4514_string()) +        if six.PY2: +            return "<Name({})>".format(self.rfc4514_string().encode('utf8')) +        else: +            return "<Name({})>".format(self.rfc4514_string()) | 
