Skip to content

Commit

Permalink
Removed a few comments that I'd missed previously
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscallan committed Apr 11, 2024
1 parent bd1cca4 commit 5c941c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/robot/libraries/Screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@ def __init__(self, screenshot_directory=None, screenshot_module=None, image_form
| Library | Screenshot | ${TEMPDIR} |
| Library | Screenshot | screenshot_module=PyGTK |
"""
# take in the image format here, so it can be referenced from here on out
self._out_img_format = image_format
self._given_screenshot_dir = self._norm_path(screenshot_directory)
# make sure all screenshot modules support the type we want - they do
self._screenshot_taker = ScreenshotTaker(screenshot_module, self._out_img_format)

def _norm_path(self, path):
Expand Down Expand Up @@ -244,7 +242,6 @@ def _get_screenshot_path(self, basename):
file_extensions = Screenshot.IMAGE_FORMATS[self._out_img_format]["extensions"]
except KeyError as ke:
logger.error(f"KeyError in _get_screenshot_path(): {ke}")
# if basename.lower().endswith(file_extensions):
if any([basename.lower().endswith(x) for x in file_extensions]):
return os.path.join(self._screenshot_dir, basename)
index = 0
Expand Down

0 comments on commit 5c941c3

Please sign in to comment.