mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Replaced subprocess commands by run() wherever possible.
This commit is contained in:
committed by
Carlton Gibson
parent
7bd9633320
commit
9386586f31
@@ -45,4 +45,4 @@ class DatabaseClient(BaseDatabaseClient):
|
||||
|
||||
def runshell(self):
|
||||
args = DatabaseClient.settings_to_cmd_args(self.connection.settings_dict)
|
||||
subprocess.check_call(args)
|
||||
subprocess.run(args, check=True)
|
||||
|
||||
@@ -14,4 +14,4 @@ class DatabaseClient(BaseDatabaseClient):
|
||||
wrapper_path = shutil.which(self.wrapper_name)
|
||||
if wrapper_path:
|
||||
args = [wrapper_path, *args]
|
||||
subprocess.check_call(args)
|
||||
subprocess.run(args, check=True)
|
||||
|
||||
@@ -9,4 +9,4 @@ class DatabaseClient(BaseDatabaseClient):
|
||||
def runshell(self):
|
||||
args = [self.executable_name,
|
||||
self.connection.settings_dict['NAME']]
|
||||
subprocess.check_call(args)
|
||||
subprocess.run(args, check=True)
|
||||
|
||||
Reference in New Issue
Block a user