summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/backends/mysql/client.py')
-rw-r--r--django/db/backends/mysql/client.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/django/db/backends/mysql/client.py b/django/db/backends/mysql/client.py
index 8364c7b6e6..2106c4d3da 100644
--- a/django/db/backends/mysql/client.py
+++ b/django/db/backends/mysql/client.py
@@ -1,5 +1,4 @@
-import os
-import sys
+import subprocess
from django.db.backends import BaseDatabaseClient
@@ -34,7 +33,4 @@ class DatabaseClient(BaseDatabaseClient):
if db:
args += [db]
- if os.name == 'nt':
- sys.exit(os.system(" ".join(args)))
- else:
- os.execvp(self.executable_name, args)
+ subprocess.call(args)