Skip to content

Commit

Permalink
this is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthchirp committed Jul 5, 2019
1 parent e769c19 commit f0f5b00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion format/FormatPYunspecifiedStill.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def understand(image_file):
try:
with FormatPYunspecified.open_file(image_file, "rb") as fh:
if six.PY3:
data = pickle.load(fh, encoding="bytes")
data = pickle.load(fh, encoding="bytes") # lgtm
# the '# lgtm' comment disables an lgtm false positive and
# can be removed once we move to Python 3 only
data = {key.decode("ascii"): value for key, value in data.items()}
else:
data = pickle.load(fh)
Expand Down

0 comments on commit f0f5b00

Please sign in to comment.