From 0af809bf174b5f9af20f602e6eb135c519c7af70 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Thu, 27 Nov 2014 15:20:14 +0100 Subject: add amSynth, fix gallery plugin (python 3). --- extra_plugins/gallery.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extra_plugins') diff --git a/extra_plugins/gallery.py b/extra_plugins/gallery.py index 3c5011d..84d5a6f 100644 --- a/extra_plugins/gallery.py +++ b/extra_plugins/gallery.py @@ -1,6 +1,6 @@ -import logging, json, os, sys, time, Image +import logging, json, os, sys, time from pelican import signals -from PIL import ImageOps +from PIL import Image, ImageOps """ @@ -163,10 +163,10 @@ class Gallery(): if not os.path.exists(preset_dir): os.makedirs(preset_dir) else: - print "You have no presets defined, please add GALLERY_PRESETS array to settings file, with at least one preset defined, see docs." + print("You have no presets defined, please add GALLERY_PRESETS array to settings file, with at least one preset defined, see docs.") def get_files_from_data(self): - print "getting files for %s" % self.absolute_src_path + print("getting files for %s" % self.absolute_src_path) from os import listdir from os.path import isfile, join return [ f for f in listdir(self.absolute_src_path) if isfile(join(self.absolute_src_path,f)) and f != ".DS_Store" ] -- cgit v1.2.1