Coding style.

- Using subprocess.run
This commit is contained in:
Andrew Hamilton 2018-03-24 16:34:49 +10:00
parent 5715ab8ea9
commit 320670bb43
6 changed files with 16 additions and 13 deletions

View file

@ -712,9 +712,9 @@ class Screen:
scroll_position[1] + 1)
self._log.log_message([in_green("Editing "), path_colored,
in_green(' at line %s...' % line_num)])
subprocess.Popen("%s +%s %s" %
(self.editor_command, line_num, path), shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
subprocess.run("%s +%s %s" %
(self.editor_command, line_num, path), shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def toggle_status_style(self):
self._summary.toggle_status_style(self._log)