Index: pykota/trunk/pykota/accounters/ink.py
===================================================================
--- pykota/trunk/pykota/accounters/ink.py (revision 3411)
+++ pykota/trunk/pykota/accounters/ink.py (revision 3413)
@@ -8,10 +8,10 @@
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
@@ -36,5 +36,5 @@
                         "GC" : { "G" : "grayscale", "C" : "colored" } ,
                      }
-    def computeJobSize(self) :    
+    def computeJobSize(self) :
         """Do ink accounting for a print job."""
         if (not self.isPreAccounter) and \
@@ -46,5 +46,5 @@
             self.inkUsage = self.filter.preaccounter.inkUsage   # Optimize : already computed !
             return self.filter.softwareJobSize                  # Optimize : already computed !
-            
+
         parameters = [p.strip() for p in self.arguments.split(',')]
         if len(parameters) == 1 :
@@ -54,25 +54,25 @@
         if colorspace not in ("cmyk", "bw", "cmy", "rgb", "gc") :
             raise PyKotaAccounterError, _("Invalid parameters for ink accounter : [%s]") % self.arguments
-            
-        try :    
+
+        try :
             resolution = int(resolution)
-        except ValueError :    
+        except ValueError :
             raise PyKotaAccounterError, "Invalid parameters for ink accounter : [%s]" % self.arguments
-            
+
         self.filter.logdebug("Using internal parser to compute job's size and ink usage.")
-        
+
         jobsize = 0
         if self.filter.JobSizeBytes :
             try :
                 from pkpgpdls import analyzer, pdlparser
-            except ImportError :    
+            except ImportError :
                 self.filter.printInfo("pkpgcounter is now distributed separately, please grab it from http://www.pykota.com/software/pkpgcounter", "error")
                 self.filter.printInfo("Precomputed job size will be forced to 0 pages.", "error")
-            else :     
+            else :
                 options = analyzer.AnalyzerOptions(colorspace=colorspace, resolution=resolution)
                 try :
                     parser = analyzer.PDLAnalyzer(self.filter.DataFile, options)
                     (cspace, pages) = parser.getInkCoverage()
-                except pdlparser.PDLParserError, msg :    
+                except pdlparser.PDLParserError, msg :
                     # Here we just log the failure, but
                     # we finally ignore it and return 0 since this
@@ -80,5 +80,5 @@
                     # job's size MAY be.
                     self.filter.printInfo(_("Unable to precompute the job's size and ink coverage with the generic PDL analyzer : %s") % msg, "warn")
-                else :    
+                else :
                     cspacelabels = self.cspaceExpanded[cspace]
                     for page in pages :
@@ -86,14 +86,14 @@
                         for color in page.keys() :
                             colordict[cspacelabels[color]] = page[color]
-                        self.inkUsage.append(colordict)    
+                        self.inkUsage.append(colordict)
                     jobsize = len(pages)
                     try :
                         if self.filter.Ticket.FileName is not None :
-                            # when a filename is passed as an argument, the backend 
+                            # when a filename is passed as an argument, the backend
                             # must generate the correct number of copies.
                             jobsize *= self.filter.Ticket.Copies
                             self.inkUsage *= self.filter.Ticket.Copies
-                    except AttributeError : # When not run from the cupspykota backend 
+                    except AttributeError : # When not run from the cupspykota backend
                         pass
                     self.filter.logdebug("Ink usage : %s ===> %s" % (cspace, repr(self.inkUsage)))
-        return jobsize        
+        return jobsize
