Merge changes from master to Aigrain publishing code - that will be used for new...
[librarian.git] / librarian / cover.py
index a37b911..dfd451b 100644 (file)
@@ -4,7 +4,7 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 import re
-import Image, ImageFont, ImageDraw, ImageFilter, ImageEnhance
+from PIL import Image, ImageFont, ImageDraw, ImageFilter, ImageEnhance
 from StringIO import StringIO
 from librarian import get_resource, OutputFile, URLOpener
 
@@ -258,7 +258,6 @@ class WLCover(Cover):
         super(WLCover, self).__init__(book_info, format=format, width=width, height=height)
         self.kind = book_info.kind
         self.epoch = book_info.epoch
-        self.with_logo = with_logo
         if book_info.cover_url:
             url = book_info.cover_url
             bg_src = None