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/mscrap.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/>. 
     
    3333    required = [ "xvfb-run", "xauth", "abiword", "gs" ] 
    3434    format = "Microsoft shitty" 
    35     def isValid(self) :     
     35    def isValid(self) : 
    3636        """Returns True if data is MS crap, else False. 
    37          
     37 
    3838           Identifying datas taken from the file command's magic database. 
    3939           IMPORTANT : some magic values are not reused here because they 
    4040           IMPORTANT : seem to be specific to some particular i18n release. 
    41         """    
     41        """ 
    4242        if self.firstblock.startswith("PO^Q`") \ 
    4343           or self.firstblock.startswith("\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1") \ 
     
    4949            if self.isMissing(self.required) : 
    5050                return False 
    51             else :     
     51            else : 
    5252                return True 
    53         else :     
     53        else : 
    5454            return False 
    55              
     55 
    5656    def getJobSize(self) : 
    5757        """Counts pages in a Microsoft Word (r) (tm) (c) (etc...) document. 
     
    7171                (first, last) = self.parent.readFirstAndLastBlocks(psinputfile) 
    7272                import postscript 
    73                 return postscript.Parser(self.parent,  
    74                                          outfname,  
     73                return postscript.Parser(self.parent, 
     74                                         outfname, 
    7575                                         (first, last)).getJobSize() 
    7676            finally : 
    7777                psinputfile.close() 
    78         finally :     
     78        finally : 
    7979            workfile.close() 
    8080        raise pdlparser.PDLParserError, "Impossible to count pages in %(infname)s" % locals()