#23919: Cleanups for when we drop Python 2 compatibility
--------------------------------------+------------------------------------
     Reporter:  Tim Graham            |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Core (Other)          |                  Version:
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by Tom):

 I was looking at potential cleanups I could help with and noticed a lot of
 `os.path` functions that could be replaced with `pathlib` - we have 219
 occurrences of `os.path` (excluding usages in tests).

 Is this something worth spending time on? It's pretty easy to convert, and
 it makes path related code a lot more readable IMO (no need for nested,
 multiple os.path.* calls in a single line for example). In 3.5 and above
 there is also a `read_text` method on paths which is quite useful in some
 cases.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23919#comment:123>
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/067.437e76dc3043226589087d8419e95e01%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to