#30173: Use subprocess.run and PGPASSWORD for client in postgres backend
------------------------------------------+--------------------------
               Reporter:  Daniel Bowring  |          Owner:  nobody
                   Type:  Uncategorized   |         Status:  assigned
              Component:  Uncategorized   |        Version:  2.1
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  1
                  UI/UX:  0               |
------------------------------------------+--------------------------
 [https://docs.python.org/3/library/subprocess.html#subprocess.run
 subprocess.run] was added in python 3.5 (which is the minimum version
 since Django 2.1). This function allows you to pass a custom environment
 for the subprocess.

 Using this in django.db.backends.postgres.client to set PGPASSWORD
 simplifies the code and makes it more reliable.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30173>
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/051.c53719bd95c71af86e0fc4ce3a8ebb50%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to