Skip to content

Commit 9d40c79

Browse files
committed
fix: Refactor
1 parent 23f44d6 commit 9d40c79

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
@@ -1731,17 +1731,18 @@ def _sign_internal(
17311731
format: str,
17321732
source_stream: Stream,
17331733
dest_stream: Stream) -> tuple[int, Optional[bytes]]:
1734-
"""Core signing logic shared between sign() and sign_file() methods.
1735-
1734+
"""Core signing logic shared between sign() and sign_file() methods,
1735+
to use same native calls but expose different API surface.
1736+
17361737
Args:
17371738
signer: The signer to use
17381739
format: The MIME type or extension of the content
17391740
source_stream: The source stream
17401741
dest_stream: The destination stream
1741-
1742+
17421743
Returns:
17431744
A tuple of (size of C2PA data, optional manifest bytes)
1744-
1745+
17451746
Raises:
17461747
C2paError: If there was an error during signing
17471748
"""

0 commit comments

Comments
 (0)