Skip to content

Commit

Permalink
Fix flake8's 'over-indented' complaint.
Browse files Browse the repository at this point in the history
  • Loading branch information
otaku42 committed Apr 20, 2023
1 parent d18bf00 commit 430d947
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/v4l2py-ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@


def _get_ctrl(cam, control):
if control.isdigit() or control.startswith("0x"):
_ctrl = int(control, 0)
else:
_ctrl = control

try:
ctrl = cam.controls[_ctrl]
except KeyError:
return None
else:
return ctrl
if control.isdigit() or control.startswith("0x"):
_ctrl = int(control, 0)
else:
_ctrl = control

try:
ctrl = cam.controls[_ctrl]
except KeyError:
return None
else:
return ctrl


def show_control_status(device: str, legacy_controls: bool) -> None:
Expand Down

0 comments on commit 430d947

Please sign in to comment.