#31076: dbshell crashes on Windows and Python < 3.8.
-------------------------------------+-------------------------------------
               Reporter:  felixxm    |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  master
  layer (models, ORM)                |
               Severity:  Release    |       Keywords:
  blocker                            |
           Triage Stage:  Accepted   |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 `subprocess.run()`'s `args` parameter accepts a path-like object on
 Windows since Python 3.8 (see
 [https://docs.python.org/3/library/subprocess.html documentation]), so
 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8 broke using `manage.py dbshell`
 (maybe sth more) on Windows and Python < 3.8.
 {{{
   File "C:\Python37\lib\subprocess.py", line 472, in run
     with Popen(*popenargs, **kwargs) as process:
   File "C:\Python37\lib\subprocess.py", line 775, in __init__
     restore_signals, start_new_session)
   File "C:\Python37\lib\subprocess.py", line 1119, in _execute_child
     args = list2cmdline(args)
   File "C:\Python37\lib\subprocess.py", line 530, in list2cmdline
     needquote = (" " in arg) or ("\t" in arg) or not arg
 TypeError: argument of type 'WindowsPath' is not iterable
 }}}

 Regression in 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31076>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.296f366d8bc5b71f2dcc4d72339db17e%40djangoproject.com.

Reply via email to