changeset 33:e8b445ed922d

arnica_slides: use list instead of or
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 24 May 2008 10:58:47 +0200
parents 03db81d282ce
children 864fba4e90f3
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sat May 24 10:57:33 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Sat May 24 10:58:47 2008 +0200
@@ -454,7 +454,7 @@
         # ToDo besides lots of refactoring, logig when what is needed has to be rechecked
             filename, ext = os.path.splitext(target)
 
-            if ext == '.gif'  or  ext == '.png':
+            if ext in ('.gif', '.png'):
                 img_type = 'PNG'
                 thumbfile = "tmp.thumbnail_%(file)s.png" % {"file": filename}
                 webnail = "tmp.webnail_%(file)s.png" % {"file": filename}