Skip to content

Commit

Permalink
Python 3 division fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 4, 2017
1 parent 382db44 commit d039be7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PIL/FliImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FliImageFile(ImageFile.ImageFile):
format = "FLI"
format_description = "Autodesk FLI/FLC Animation"
_close_exclusive_fp_after_loading = False

def _open(self):

# HEAD
Expand All @@ -56,7 +56,7 @@ def _open(self):
# animation speed
duration = i32(s[16:20])
if magic == 0xAF11:
duration = (duration * 1000) / 70
duration = (duration * 1000) // 70
self.info["duration"] = duration

# look for palette
Expand Down Expand Up @@ -176,6 +176,7 @@ def _seek(self, frame):
def tell(self):
return self.__frame


#
# registry

Expand Down

0 comments on commit d039be7

Please sign in to comment.