Use new style classes.

This commit is contained in:
Simon
2013-02-15 00:12:50 +01:00
parent 4ab124fceb
commit cbdd4fe69b
3 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -37,7 +37,7 @@ from PIL import ImageDraw, ImageOps, ImageFile
EXIF_ORIENTATION_TAG = 274
class Image:
class Image(object):
""" Image container
resize, thumbnail, ...

View File

@@ -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):