gallery.py: Python-3-compatible integer division
authorW. Trevor King <wking@tremily.us>
Mon, 9 Dec 2013 05:11:02 +0000 (21:11 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 9 Dec 2013 05:11:02 +0000 (21:11 -0800)
commit3f35377f42d25fad5ffb2b4c541035b24d3a88c8
treeb39c7ab9a5ab201d1e78b7c8cd27b9fa8f2c255d
parent96f4575f06c0469e5e289bec34af36b3bf34cb8d
gallery.py: Python-3-compatible integer division

Avoid:

  Traceback (most recent call last):
    …
    File "/.../gallery.py", line 610, in page
      self._page(path=file_path, stream=stream)
    File "/.../gallery.py", line 719, in _page
      gallery_page = '{}/?pp={:d}'.format(gallery, page + 1)
  ValueError: Unknown format code 'd' for object of type 'float'
posts/gallery/gallery.py