Skip to content

Commit e305d25

Browse files
committed
style: Styling check routine with Black
1 parent 99e7e8d commit e305d25

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

examples/add_media_profile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@
8787
print(f"\nProfile Details:")
8888
print(f" Name: {profile.Name}")
8989
print(f" Token: {profile.token}")
90-
if hasattr(profile, "VideoSourceConfiguration") and profile.VideoSourceConfiguration:
90+
if (
91+
hasattr(profile, "VideoSourceConfiguration")
92+
and profile.VideoSourceConfiguration
93+
):
9194
print(
9295
f" Video Source: {profile.VideoSourceConfiguration.SourceToken if hasattr(profile.VideoSourceConfiguration, 'SourceToken') else 'N/A'}"
9396
)
@@ -104,7 +107,9 @@
104107
# Optional: Get stream URI for the new profile
105108
print("\nGetting stream URI for the new profile...")
106109
stream_setup = {"Stream": "RTP-Unicast", "Transport": {"Protocol": "RTSP"}}
107-
stream_uri = media.GetStreamUri(StreamSetup=stream_setup, ProfileToken=profile_token)
110+
stream_uri = media.GetStreamUri(
111+
StreamSetup=stream_setup, ProfileToken=profile_token
112+
)
108113
print(f"Stream URI: {stream_uri.Uri}")
109114

110115
except Exception as e:

onvif/utils/xml_capture.py

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)