Show
Ignore:
Timestamp:
10/06/08 00:22:07 (16 years ago)
Author:
jerome
Message:

Removed spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/bj.py

    r3410 r3436  
    88# the Free Software Foundation, either version 3 of the License, or 
    99# (at your option) any later version. 
    10 #  
     10# 
    1111# This program is distributed in the hope that it will be useful, 
    1212# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414# GNU General Public License for more details. 
    15 #  
     15# 
    1616# You should have received a copy of the GNU General Public License 
    1717# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     
    3030    """A parser for Canon BJ documents.""" 
    3131    format = "Canon BJ/BJC" 
    32     def isValid(self) :         
     32    def isValid(self) : 
    3333        """Returns True if data is BJ/BJC, else False.""" 
    3434        if self.firstblock.startswith("\033[K\002\000") : 
    3535            return True 
    36         else :     
     36        else : 
    3737            return False 
    38              
     38 
    3939    def getJobSize(self) : 
    4040        """Counts pages in a Canon BJ document. 
    41          
     41 
    4242           Algorithm by Jerome Alet. 
    43             
     43 
    4444           The documentation used for this was : 
    45           
     45 
    4646           ghostscript-8.60/src/gdevbj*.c 
    4747        """ 
     
    5757                        # through the Set Initial Condition command 
    5858                        pageheader = minfile[pos:pos+7] 
    59                         if pageheader in ("\033[K\002\000\000\017",  
     59                        if pageheader in ("\033[K\002\000\000\017", 
    6060                                          "\033[K\002\000\000\044", 
    6161                                          "\033[K\002\000\004\044") : 
     
    6565            except IndexError : # EOF ? 
    6666                pass 
    67         finally :         
     67        finally : 
    6868            minfile.close() # reached EOF 
    6969        return pagecount