From 0a096e68fa4dd8555371074b28a9a8b54dc56be6 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 21 Mar 2020 22:08:04 +0900 Subject: [PATCH] [core/process] Remove spaces in default/keyword arguments --- core/process.py | 6 +++--- osh/cmd_parse.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/process.py b/core/process.py index 37d0a81acb..3a29512572 100644 --- a/core/process.py +++ b/core/process.py @@ -231,7 +231,7 @@ def _PushSave(self, fd): return need_restore - def _PushDup(self, fd1, fd2, fd2name = None): + def _PushDup(self, fd1, fd2, fd2name=None): # type: (int, int, string) -> bool """Save fd2, and dup fd1 onto fd2. @@ -283,7 +283,7 @@ def _PushCloseFd(self, fd, fd_name): self._PushSave(fd) return True - def _PushMoveFd(self, fd1, fd2, fd2name = None): + def _PushMoveFd(self, fd1, fd2, fd2name=None): # type: (int, int) -> bool if fd2name: @@ -1052,7 +1052,7 @@ def Start(self, waiter): self.pids.append(pid) self.pipe_status.append(-1) # uninitialized - # NOTE: This is done in the SHELL PROCESS after every fork() call.rr + # NOTE: This is done in the SHELL PROCESS after every fork() call. # It can't be done at the end; otherwise processes will have descriptors # from non-adjacent pipes. proc.MaybeClosePipe() diff --git a/osh/cmd_parse.py b/osh/cmd_parse.py index 26e8cfed7b..89be738829 100644 --- a/osh/cmd_parse.py +++ b/osh/cmd_parse.py @@ -487,7 +487,7 @@ def ParseRedirect(self): if op_tok.val[0] == '{': index = op_tok.val.find('}') if index < 0: - p_die('Invalid token after redirect operator', word = self.cur_word) + p_die('Invalid token after redirect operator', word=self.cur_word) fd_name = op_tok.val[1:index] else: index = 0