summaryrefslogtreecommitdiffstats
path: root/extra_plugins/gallery.py
diff options
context:
space:
mode:
Diffstat (limited to 'extra_plugins/gallery.py')
-rw-r--r--extra_plugins/gallery.py8
1 files changed, 4 insertions, 4 deletions
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" ]