未验证 提交 cc753aa4 编写于 作者: T Tony Cao 提交者: GitHub

[CodeStyle][F522] Remove unused arguments (#46743)

* Fix F522: remove unused arguments

* add redirect_stderr argument in _run_cmd
上级 aede713a
......@@ -611,8 +611,8 @@ class HDFSClient(FS):
return self._is_dir(fs_path)
def _is_dir(self, fs_path):
cmd = "test -d {}".format(fs_path, redirect_stderr=True)
ret, lines = self._run_cmd(cmd, retry_times=1)
cmd = "test -d {}".format(fs_path)
ret, lines = self._run_cmd(cmd, redirect_stderr=True, retry_times=1)
if ret:
# other error
if self._test_match(lines):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册