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

Code cleaning.

Files:
1 modified

Legend:

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

    r492 r520  
    3636        """Returns True if data is DVI, else False.""" 
    3737        try : 
    38             if (ord(self.firstblock[0]) == 0xf7) and (ord(self.lastblock[-1]) == 0xdf) : 
     38            if (ord(self.parent.firstblock[0]) == 0xf7) \ 
     39                and (ord(self.parent.lastblock[-1]) == 0xdf) : 
    3940                self.logdebug("DEBUG: Input file is in the DVI format.") 
    4041                return True