Skip to content

Commit 5cb1a71

Browse files
committed
fix: Docs
1 parent aa701a7 commit 5cb1a71

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
@@ -746,10 +746,9 @@ def __init__(self, file):
746746
self._initialized = False
747747
self._stream = None
748748

749-
# Generate unique stream ID efficiently using object ID and counter
750-
# Safely increment stream ID with overflow protection
749+
# Generate unique stream ID using object ID and counter
751750
if Stream._next_stream_id >= Stream._MAX_STREAM_ID:
752-
Stream._next_stream_id = 0 # Reset to 0 if we hit the maximum
751+
Stream._next_stream_id = 0
753752
self._stream_id = f"{id(self)}-{Stream._next_stream_id}"
754753
Stream._next_stream_id += 1
755754

0 commit comments

Comments
 (0)