Skip to content

Commit

Permalink
Fix issues found by pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Aug 19, 2023
1 parent 5091239 commit 5fc9e5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/webcam-formats/webcam_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class WebcamFormats:

__line_idx = 0

pix_fmt = dict()
pix_fmt = {}

selected_format = ""
selected_size = tuple()
Expand Down Expand Up @@ -54,7 +54,7 @@ def __index(self):
if line.startswith("Pixel Format"):
# Remove removing surrounding single quotes (') junk
pix_fmt = line.split()[2].replace("'", "")
self.pix_fmt[pix_fmt] = dict()
self.pix_fmt[pix_fmt] = {}

if line.startswith("Size"):
self.__size()
Expand All @@ -69,7 +69,7 @@ def __size(self):
size = tuple(map(int, size.split("x")))

last_key = list(self.pix_fmt)[-1]
self.pix_fmt[last_key][size] = list()
self.pix_fmt[last_key][size] = []

self.__line_idx += 1
self.__fps()
Expand Down

0 comments on commit 5fc9e5b

Please sign in to comment.