From 70977bcbb5e3ce970da8a43f218bdbcef441c0cd Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sun, 13 Sep 2015 15:45:15 +0100 Subject: [PATCH] Got the order of the enums wrong --- PIL/TiffTags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PIL/TiffTags.py b/PIL/TiffTags.py index 8fb851cda..ddc7cde6d 100644 --- a/PIL/TiffTags.py +++ b/PIL/TiffTags.py @@ -157,7 +157,7 @@ TAGS_V2 = { 45580: ("PitchAngle", 10, 1), 45581: ("RollAngle", 10, 1), - 50741: ("MakerNoteSafety", 3, 1, {0: "Unsafe", 1: "Safe"}), + 50741: ("MakerNoteSafety", 3, 1, {"Unsafe": 0, "Safe": 1}), 50780: ("BestQualityScale", 5, 1), 50838: ("ImageJMetaDataByteCounts", 4, 1), 50839: ("ImageJMetaData", 7, 1) @@ -168,8 +168,8 @@ def _populate(): # Populate legacy structure. TAGS[k] = v[0] if len(v) == 4: - for sk,sv in v[3].items(): - TAGS[(k,sk)] = sv + for sk, sv in v[3].items(): + TAGS[(k, sv)] = sk TAGS_V2[k] = TagInfo(k, *v)