From 65b735d9cb94ef54c4ddba5dd9eddcfb0bd50ee3 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 7 Apr 2020 21:11:16 +1000 Subject: [PATCH] Marked to_int() as private --- src/PIL/IcnsImagePlugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PIL/IcnsImagePlugin.py b/src/PIL/IcnsImagePlugin.py index 963ad199e..e3b274295 100644 --- a/src/PIL/IcnsImagePlugin.py +++ b/src/PIL/IcnsImagePlugin.py @@ -300,12 +300,12 @@ class IcnsImageFile(ImageFile.ImageFile): self.load_end() -def to_int(s): +def _to_int(s): b = s.encode("ascii") return (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3] -MAGIC = to_int("icns") +MAGIC = _to_int("icns") HEADER_SIZE = 8 TOC = "TOC " @@ -341,15 +341,15 @@ def _save(im, fp, filename): # TOC toc_size = HEADER_SIZE + (len(entries) * HEADER_SIZE) - fp.write(struct.pack("