Skip to content

Commit

Permalink
[py]: Fix syntax for stream.close() in service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Nov 4, 2022
1 parent 1d5210a commit 335df76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _terminate_process(self) -> None:
stdin, stdout, stderr = self.process.stdin, self.process.stdout, self.process.stderr
for stream in stdin, stdout, stderr:
try:
stream.close(). # type: ignore
stream.close() # type: ignore
except AttributeError:
pass
self.process.terminate()
Expand Down

0 comments on commit 335df76

Please sign in to comment.