blob: 24358c00c119a82fdbf73803a7c8e41034a8ea5b (
plain)
1
2
3
4
5
6
7
8
9
10
|
# coding: utf-8
from __future__ import unicode_literals
from django.utils import six
class NonAsciiRepr(object):
def __repr__(self):
return 'nôt åscíì' if six.PY3 else 'nôt åscíì'.encode('utf-8')
|