From: Philipp Spitzer Date: Thu, 9 Jul 2020 20:16:26 +0000 (+0200) Subject: Yes, it's as pythonic as such an non-Python object can be. X-Git-Url: https://git.toastfreeware.priv.at/toast/stream2beamer.git/commitdiff_plain/3741860f4fe79687cfbe201a2335139e76eea90a Yes, it's as pythonic as such an non-Python object can be. --- diff --git a/lagarde.py b/lagarde.py index 711dc1d..140ccd8 100755 --- a/lagarde.py +++ b/lagarde.py @@ -58,11 +58,8 @@ class Lagarde: return caps = pad.get_current_caps() - # assert (len(caps)) # we have a Gst.Caps object and it has no length - # s = caps[0] # also, it's not a list padsize = caps.get_size() - assert(padsize > 0) - for i in range(padsize): # pythonic?! + for i in range(padsize): s = caps.get_structure(i) # Gst.Structure name = s.get_name() if name.startswith('video'):