Skip to content

Commit

Permalink
[core/process] Remove spaces in default/keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 21, 2020
1 parent 668d2bd commit 0a096e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion osh/cmd_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a096e6

Please sign in to comment.