Skip to content

Commit 2fac380

Browse files
committed
fix: FInal formatting fixes
1 parent 0ce5e5c commit 2fac380

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/c2pa/c2pa.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,8 @@ def read_ingredient_file(
712712
.. deprecated:: 0.11.0
713713
This function is deprecated and will be removed in a future version.
714714
To read C2PA metadata, use the :class:`c2pa.c2pa.Reader` class.
715-
To add ingredients to a manifest, use :meth:`c2pa.c2pa.Builder.add_ingredient`.
715+
To add ingredients to a manifest,
716+
use :meth:`c2pa.c2pa.Builder.add_ingredient` instead.
716717
717718
Args:
718719
path: Path to the file to read
@@ -1227,8 +1228,8 @@ def initialized(self) -> bool:
12271228

12281229
class Reader:
12291230
"""High-level wrapper for C2PA Reader operations.
1230-
1231-
Example:
1231+
1232+
Example:
12321233
```
12331234
with Reader("image/jpeg", output) as reader:
12341235
manifest_json = reader.json()
@@ -2301,7 +2302,7 @@ def add_ingredient(self, ingredient_json: str, format: str, source: Any):
23012302
C2paError: If there was an error adding the ingredient
23022303
C2paError.Encoding: If the ingredient JSON contains
23032304
invalid UTF-8 characters
2304-
2305+
23052306
Example:
23062307
```
23072308
with open(ingredient_file_path, 'rb') as a_file:

tests/test_unit_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ def test_builder_sign_with_setting_no_thumbnail_and_ingredient(self):
11241124

11251125
builder.close()
11261126

1127-
# Settings are global, so we reset to the default "true" here
1127+
# Settings are thread-local, so we reset to the default "true" here
11281128
load_settings('{"builder": { "thumbnail": {"enabled": true}}}')
11291129

11301130
def test_builder_sign_with_duplicate_ingredient(self):

0 commit comments

Comments
 (0)