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

Finally we need to duplicate some datas, since for some file formats (e.g. mstrash)
a preliminary conversion will have to be done (through wvware for example) and we
would need to overwrite original values, which is not desirable.

Files:
1 modified

Legend:

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

    r520 r522  
    3939           IMPORTANT : seem to be specific to some particular i18n release. 
    4040        """    
    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") : 
     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") : 
    4747            self.logdebug("DEBUG: Input file seems to be in a Microsoft shitty file format.") 
    4848            return True