Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -98,7 +98,6 @@ class XEP_0339:
assert application_data is not None
application_data["msid"] = " ".join(parts)
def _generate_sdp_content_trigger(
self,
session: dict,
@ -109,7 +108,7 @@ class XEP_0339:
application_data: dict,
app_data_key: str,
media_data: dict,
media: str
media: str,
) -> None:
"""Generate "msid" and "ssrc" attributes"""
if "msid" in media_data:
@ -155,9 +154,7 @@ class XEP_0339:
semantics = ssrc_group_elt["semantics"]
semantic_ids = media_data.setdefault("ssrc-group", {})[semantics] = []
for source_elt in ssrc_group_elt.elements(NS_JINGLE_RTP_SSMA, "source"):
semantic_ids.append(
int(source_elt["ssrc"])
)
semantic_ids.append(int(source_elt["ssrc"]))
except (KeyError, ValueError) as e:
log.warning(
f"Error while parsing <ssrc-group>: {e}\n{ssrc_group_elt.toXml()}"