#19928: python_2_unicode_compatible breaks Python 2
-------------------------------------+-------------------------------------
     Reporter:  vernondcole          |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Uncategorized        |                  Version:  master
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  porting to python 3  |             Triage Stage:
    Has patch:  0                    |  Unreviewed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by aaugustin):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 The [https://docs.djangoproject.com/en/dev/topics/python3/#str-and-
 unicode-methods docs] say "you must define a `__str__()` method returning
 text".

 Your `__str__()` method returns a bytestring under Python 2.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19928#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to