Use new style classes.
This commit is contained in:
@@ -38,7 +38,7 @@ from .writer import Writer
|
||||
DESCRIPTION_FILE = "index.md"
|
||||
|
||||
|
||||
class Gallery:
|
||||
class Gallery(object):
|
||||
"Prepare images"
|
||||
|
||||
def __init__(self, settings, input_dir, output_dir, force=False,
|
||||
|
||||
@@ -37,7 +37,7 @@ from PIL import ImageDraw, ImageOps, ImageFile
|
||||
EXIF_ORIENTATION_TAG = 274
|
||||
|
||||
|
||||
class Image:
|
||||
class Image(object):
|
||||
""" Image container
|
||||
|
||||
resize, thumbnail, ...
|
||||
|
||||
@@ -54,7 +54,7 @@ def link(url, title):
|
||||
return '<a href="%s">%s</a>' % (url, title)
|
||||
|
||||
|
||||
class Writer():
|
||||
class Writer(object):
|
||||
"""Generate html pages for each directory of images."""
|
||||
|
||||
def __init__(self, settings, output_dir, theme=None):
|
||||
|
||||
Reference in New Issue
Block a user