Skip to content

Commit

Permalink
STY: Use unnecessary one-line function
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jun 30, 2022
1 parent d1f2ed2 commit 9640100
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions PyPDF2/filters.py
Expand Up @@ -73,10 +73,6 @@ def decompress(data: bytes) -> bytes:
return result_str


def compress(data: bytes) -> bytes:
return zlib.compress(data)


class FlateDecode:
@staticmethod
def decode(
Expand Down Expand Up @@ -171,7 +167,7 @@ def _decode_png_prediction(data: str, columns: int) -> str:

@staticmethod
def encode(data: bytes) -> bytes:
return compress(data)
return zlib.compress(data)


class ASCIIHexDecode:
Expand Down

0 comments on commit 9640100

Please sign in to comment.