diff options
| author | Mihail Milushev <lanzz@lanzz.org> | 2014-03-09 13:00:42 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-04 09:21:03 -0400 |
| commit | bf5382c6e549d78da9f7029cd86686459b52eaed (patch) | |
| tree | 7be7807ea05b2444ef99dc2251e62ebcdddff778 /django/db/backends/sqlite3 | |
| parent | e4dd8b5dde922d967697b2bdd573aa2364da4f1b (diff) | |
Fixed #22234 -- Replaced OS-specific code with subprocess.call() in dbshell.
This fixes escaping of special characters on Windows.
Diffstat (limited to 'django/db/backends/sqlite3')
| -rw-r--r-- | django/db/backends/sqlite3/client.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/django/db/backends/sqlite3/client.py b/django/db/backends/sqlite3/client.py index 6a3ad9e76f..6553dced65 100644 --- a/django/db/backends/sqlite3/client.py +++ b/django/db/backends/sqlite3/client.py @@ -1,5 +1,4 @@ -import os -import sys +import subprocess from django.db.backends import BaseDatabaseClient @@ -10,7 +9,4 @@ class DatabaseClient(BaseDatabaseClient): def runshell(self): args = [self.executable_name, self.connection.settings_dict['NAME']] - if os.name == 'nt': - sys.exit(os.system(" ".join(args))) - else: - os.execvp(self.executable_name, args) + subprocess.call(args) |
