Skip to content

Commit

Permalink
Fix to support python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagocoutinho committed Aug 2, 2024
1 parent ee43a14 commit d7ddfc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linuxpy/video/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,8 @@ def __repr__(self):
repr += f" {addrepr}"

if self.flags:
repr += " flags=" + ",".join(flag.name.lower() for flag in self.flags)
flags = [flag.name.lower() for flag in ControlFlag if ((self._info.flags & flag) == flag)]
repr += " flags=" + ",".join(flags)

return f"<{type(self).__name__} {repr}>"

Expand Down

0 comments on commit d7ddfc3

Please sign in to comment.