Skip to content

Commit 9b78232

Browse files
committed
fix: COmments
1 parent 2fa587b commit 9b78232

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/c2pa/c2pa.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,6 @@ def load_settings(settings: Union[str, dict], format: str = "json") -> None:
702702
except (TypeError, ValueError) as e:
703703
raise C2paError(f"Failed to serialize settings to JSON: {e}")
704704

705-
# Encode strings to UTF-8 bytes outside of the C call
706705
try:
707706
settings_bytes = settings_str.encode('utf-8')
708707
format_bytes = format.encode('utf-8')
@@ -2574,7 +2573,7 @@ def add_ingredient_from_stream(
25742573
"""
25752574
self._ensure_valid_state()
25762575

2577-
# Convert dict to JSON string if necessary
2576+
# Convert dict to JSON string as necessary
25782577
if isinstance(ingredient_json, dict):
25792578
ingredient_json = json.dumps(ingredient_json)
25802579

@@ -2666,7 +2665,7 @@ def add_action(self, action_json: Union[str, dict]) -> None:
26662665
"""
26672666
self._ensure_valid_state()
26682667

2669-
# Convert dict to JSON string if necessary
2668+
# Convert dict to JSON string as necessary
26702669
if isinstance(action_json, dict):
26712670
action_json = json.dumps(action_json)
26722671

0 commit comments

Comments
 (0)