Skip to content

Commit

Permalink
Removed legacy Py2 code
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Feb 10, 2024
1 parent 619d3da commit 1bf5064
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions segno/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,7 @@ def chunk(name, data):
Returns a PNG chunk with checksum.
"""
chunk_head = name + data
# See <https://docs.python.org/2/library/zlib.html#zlib.crc32>
# why crc32() & 0xFFFFFFFF is necessary
return pack(b'>I', len(data)) + chunk_head + pack(b'>I', zlib.crc32(chunk_head) & 0xFFFFFFFF)
return pack(b'>I', len(data)) + chunk_head + pack(b'>I', zlib.crc32(chunk_head))

def scale_row_x_axis(row):
"""\
Expand Down

0 comments on commit 1bf5064

Please sign in to comment.