Changeset 2199

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

Now uses raw strings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/pdlanalyzer.py

    r2197 r2199  
    8787        pagecount = 0 
    8888        for line in self.infile.xreadlines() :  
    89             if line.startswith("%%Page: ") : 
     89            if line.startswith(r"%%Page: ") : 
    9090                pagecount += 1 
    91             elif line.startswith("%%Requirements: numcopies(") :     
     91            elif line.startswith(r"%%Requirements: numcopies(") :     
    9292                try : 
    9393                    number = int(line.strip().split('(')[1].split(')')[0]) 
     
    9797                    if number > self.copies : 
    9898                        self.copies = number 
    99             elif line.startswith("%%BeginNonPPDFeature: NumCopies ") : 
     99            elif line.startswith(r"%%BeginNonPPDFeature: NumCopies ") : 
    100100                # handle # of copies set by some Windows printer driver 
    101101                try :