Skip to content

Commit dc52e29

Browse files
committed
[py]: Remove unused vars
1 parent 6d41ffd commit dc52e29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/selenium/webdriver/common/bidi/cdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def _handle_cmd_response(self, data):
275275
# Otherwise, continue the generator to parse the JSON result
276276
# into a CDP object.
277277
try:
278-
response = cmd.send(data["result"])
278+
_ = cmd.send(data["result"])
279279
raise InternalError("The command's generator function " "did not exit when expected!")
280280
except StopIteration as exit:
281281
return_ = exit.value

py/selenium/webdriver/firefox/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def install_addon(self, path, temporary=False) -> str:
122122
fp = BytesIO()
123123
path_root = len(path) + 1 # account for trailing slash
124124
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED) as zipped:
125-
for base, dirs, files in os.walk(path):
125+
for base, _, files in os.walk(path):
126126
for fyle in files:
127127
filename = os.path.join(base, fyle)
128128
zipped.write(filename, filename[path_root:])

0 commit comments

Comments
 (0)