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/dvi.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/>. 
     
    3434    required = [ "dvips", "gs" ] 
    3535    format = "DVI" 
    36     def isValid(self) :         
     36    def isValid(self) : 
    3737        """Returns True if data is DVI, else False.""" 
    3838        try : 
     
    4040                and (ord(self.lastblock[-1]) == 0xdf) : 
    4141                return True 
    42             else :     
     42            else : 
    4343                return False 
    44         except IndexError :           
     44        except IndexError : 
    4545            return False 
    46              
     46 
    4747    def getJobSize(self) : 
    4848        """Counts pages in a DVI document. 
    49          
     49 
    5050           Algorithm by Jerome Alet. 
    51             
     51 
    5252           The documentation used for this was : 
    53           
     53 
    5454           http://www.math.umd.edu/~asnowden/comp-cont/dvi.html 
    5555        """ 
     
    6464                while minfile[pos] == eofchar : 
    6565                    pos -= 1 
    66                 idbyte = minfile[pos]     
     66                idbyte = minfile[pos] 
    6767                if idbyte != minfile[1] : 
    6868                    raise IndexError, "Invalid DVI file." 
     
    7373            except IndexError : # EOF ? 
    7474                pass 
    75         finally :         
     75        finally : 
    7676            minfile.close() # reached EOF 
    7777        return pagecount