#27006: Hints how to update code automatically to support Python3
-------------------------------+--------------------
     Reporter:  guettli        |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.10
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 I refer to this:
 https://docs.djangoproject.com/en/1.9/topics/python3/#exceptions

 I think it would be friendly to new comers, if you give advices how to
 update your code to support Python3.

 Changing from "except MyException as exc:" to "except MyException as exc:"
 can be automated.

 You can update your code automatically with the futurize tool:

 futurize --write --nobackups --fix lib2to3.fixes.fix_except your-
 directory/


 What do you think?

--
Ticket URL: <https://code.djangoproject.com/ticket/27006>
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.bc5de514c0f2407ba1a7fb07acc07796%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to