Skip to content

Commit a3d4b30

Browse files
committed
Address Tania comments
1 parent 2e71c55 commit a3d4b30

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/c2pa/c2pa.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,11 +1228,12 @@ def initialized(self) -> bool:
12281228
class Reader:
12291229
"""High-level wrapper for C2PA Reader operations.
12301230
1231-
Example:
1231+
Example:
12321232
```
1233-
with Reader(path) as reader:
1233+
with Reader("image/jpeg", output) as reader:
12341234
manifest_json = reader.json()
12351235
```
1236+
Where `output` is either an in-memory stream or an opened file.
12361237
"""
12371238

12381239
# Supported mimetypes cache
@@ -2303,8 +2304,8 @@ def add_ingredient(self, ingredient_json: str, format: str, source: Any):
23032304
23042305
Example:
23052306
```
2306-
with open(ingredient_file_path, 'rb') as f:
2307-
builder.add_ingredient(ingredient_json, "image/jpeg", f)
2307+
with open(ingredient_file_path, 'rb') as a_file:
2308+
builder.add_ingredient(ingredient_json, "image/jpeg", a_file)
23082309
```
23092310
"""
23102311
return self.add_ingredient_from_stream(ingredient_json, format, source)

0 commit comments

Comments
 (0)