Show
Ignore:
Timestamp:
11/28/07 00:52:52 (16 years ago)
Author:
jerome
Message:

Code cleaning.

Files:
1 modified

Legend:

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

    r519 r520  
    3636         
    3737           Identifying datas taken from the file command's magic database. 
    38            IMPORTANT : some magic values are not reused here because they 
    39            IMPORTANT : seem to be specific to some particular i18n release. 
     38           IMPORTANT : some magic values are not reused here because they 
     39           IMPORTANT : seem to be specific to some particular i18n release. 
    4040        """    
    41         if self.firstblock.startswith("PO^Q`") \ 
    42            or self.firstblock.startswith("\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1") \ 
    43            or self.firstblock.startswith("\xfe7\x00#") \ 
    44            or self.firstblock.startswith("\xdb\xa5-\x00\x00\x00") \ 
    45            or self.firstblock.startswith("\x31\xbe\x00\x00") \ 
    46            or self.firstblock[2112:].startswith("MSWordDoc") : 
     41        if self.parent.firstblock.startswith("PO^Q`") \ 
     42           or self.parent.firstblock.startswith("\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1") \ 
     43           or self.parent.firstblock.startswith("\xfe7\x00#") \ 
     44           or self.parent.firstblock.startswith("\xdb\xa5-\x00\x00\x00") \ 
     45           or self.parent.firstblock.startswith("\x31\xbe\x00\x00") \ 
     46           or self.parent.firstblock[2112:].startswith("MSWordDoc") : 
    4747            self.logdebug("DEBUG: Input file seems to be in a Microsoft shitty file format.") 
    4848            return True