Skip to content

Commit

Permalink
[py]: Convert accidental string concatenations to a single string
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Jul 24, 2023
1 parent dc52e29 commit 0a17d01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/bidi/cdp.py
Expand Up @@ -276,7 +276,7 @@ def _handle_cmd_response(self, data):
# into a CDP object.
try:
_ = cmd.send(data["result"])
raise InternalError("The command's generator function " "did not exit when expected!")
raise InternalError("The command's generator function did not exit when expected!")
except StopIteration as exit:
return_ = exit.value
self.inflight_result[cmd_id] = return_
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/webdriver.py
Expand Up @@ -160,7 +160,7 @@ def get_full_page_screenshot_as_file(self, filename) -> bool:
"""
if not filename.lower().endswith(".png"):
warnings.warn(
"name used for saved screenshot does not match file " "type. It should end with a `.png` extension",
"name used for saved screenshot does not match file type. It should end with a `.png` extension",
UserWarning,
)
png = self.get_full_page_screenshot_as_png()
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webdriver.py
Expand Up @@ -795,7 +795,7 @@ def get_screenshot_as_file(self, filename) -> bool:
"""
if not str(filename).lower().endswith(".png"):
warnings.warn(
"name used for saved screenshot does not match file " "type. It should end with a `.png` extension",
"name used for saved screenshot does not match file type. It should end with a `.png` extension",
UserWarning,
)
png = self.get_screenshot_as_png()
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webelement.py
Expand Up @@ -341,7 +341,7 @@ def screenshot(self, filename) -> bool:
"""
if not filename.lower().endswith(".png"):
warnings.warn(
"name used for saved screenshot does not match file " "type. It should end with a `.png` extension",
"name used for saved screenshot does not match file type. It should end with a `.png` extension",
UserWarning,
)
png = self.screenshot_as_png
Expand Down

0 comments on commit 0a17d01

Please sign in to comment.