Skip to content

Commit

Permalink
[py]: Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Jul 24, 2023
1 parent 6d41ffd commit dc52e29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/bidi/cdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _handle_cmd_response(self, data):
# Otherwise, continue the generator to parse the JSON result
# into a CDP object.
try:
response = cmd.send(data["result"])
_ = cmd.send(data["result"])
raise InternalError("The command's generator function " "did not exit when expected!")
except StopIteration as exit:
return_ = exit.value
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def install_addon(self, path, temporary=False) -> str:
fp = BytesIO()
path_root = len(path) + 1 # account for trailing slash
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED) as zipped:
for base, dirs, files in os.walk(path):
for base, _, files in os.walk(path):
for fyle in files:
filename = os.path.join(base, fyle)
zipped.write(filename, filename[path_root:])
Expand Down

0 comments on commit dc52e29

Please sign in to comment.