Show
Ignore:
Timestamp:
04/12/05 08:16:35 (19 years ago)
Author:
jerome
Message:

Use raw strings now, maybe it will help with the psyco problem

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pdlanalyzer/postscript.py

    r202 r208  
    6464        pagecount = 0 
    6565        for line in self.infile.xreadlines() :  
    66             if line.startswith("%%Page: ") : 
     66            if line.startswith(r"%%Page: ") : 
    6767                pagecount += 1 
    68             elif line.startswith("%%Requirements: numcopies(") :     
     68            elif line.startswith(r"%%Requirements: numcopies(") :     
    6969                try : 
    7070                    number = int(line.strip().split('(')[1].split(')')[0]) 
     
    7474                    if number > self.copies : 
    7575                        self.copies = number 
    76             elif line.startswith("%%BeginNonPPDFeature: NumCopies ") : 
     76            elif line.startswith(r"%%BeginNonPPDFeature: NumCopies ") : 
    7777                # handle # of copies set by some Windows printer driver 
    7878                try :