pdfutils.py: fix 2.5'ism
authorrgbecker
Mon, 06 Sep 2010 15:00:23 +0000
changeset 3431 b92783cd5a73
parent 3430 18c044305ff6
child 3432 04c84c2ef968
pdfutils.py: fix 2.5'ism
src/reportlab/pdfbase/pdfutils.py
--- a/src/reportlab/pdfbase/pdfutils.py	Mon Sep 06 13:24:45 2010 +0000
+++ b/src/reportlab/pdfbase/pdfutils.py	Mon Sep 06 15:00:23 2010 +0000
@@ -126,7 +126,7 @@
 
     Determines if a cached image exists which has the same name
     and equal or newer date to the given file."""
-    cachedname = os.path.splitext(filename)[0] + ('.a85' if rl_config.useA85 else '.bin')
+    cachedname = os.path.splitext(filename)[0] + (rl_config.useA85 and '.a85' or 'bin')
     if os.path.isfile(cachedname):
         #see if it is newer
         original_date = os.stat(filename)[8]