Re: Should ugettext_lazy return instanceof unicode? Or are reusable apps responsible for calling force_text a lot?

2016-10-23 Thread Raphael Michel
Hello, Am Fri, 21 Oct 2016 13:49:16 -0700 (PDT) schrieb Mike Edmunds : >1. Should the result of ugettext_lazy somehow inherit from > unicode? I believe this would break giant measures of code out there that use "not isinstace(lazystr, unicode)" exectly to detect that it is a lazy string and n

Re: Should ugettext_lazy return instanceof unicode? Or are reusable apps responsible for calling force_text a lot?

2016-10-23 Thread gilberto dos santos alves
hi. IMHO here single line on your app and code like # -*- coding: utf-8 -*- put it explicity in calling app of your source code. or could use (for python 2.7) [1] https://docs.python.org/2/library/codecs.html#module-codecs .ps i used this with python-sphinx and solve lot of issues with pt-BR st