Coding style.
- Using subprocess.run
This commit is contained in:
parent
5715ab8ea9
commit
320670bb43
6 changed files with 16 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue