Changeset 1599

Show
Ignore:
Timestamp:
07/10/04 16:06:37 (20 years ago)
Author:
jalet
Message:

Fix for Python2.1 incompatibilities

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1595 r1599  
    2222PyKota NEWS : 
    2323 
     24    - 1.19alpha31 : 
     25     
     26        - Fixed a double Python2.1 incompatibility with newer versions, 
     27          which prevented the PCL5 and the PCLXL parsers to work with 
     28          this older version of Python. 
     29           
    2430    - 1.19alpha30 : 
    2531     
  • pykota/trunk/pykota/pdlanalyzer.py

    r1591 r1599  
    2222# 
    2323# $Log$ 
     24# Revision 1.25  2004/07/10 14:06:36  jalet 
     25# Fix for Python2.1 incompatibilities 
     26# 
    2427# Revision 1.24  2004/07/05 21:00:39  jalet 
    2528# Fix for number of copies for each page in PCLXL parser 
     
    168171        """ 
    169172        infileno = self.infile.fileno() 
    170         minfile = mmap.mmap(infileno, os.fstat(infileno).st_size, access=mmap.ACCESS_READ) 
     173        minfile = mmap.mmap(infileno, os.fstat(infileno)[6], prot=mmap.PROT_READ, flags=mmap.MAP_SHARED) 
    171174        tagsends = { "&n" : "W",  
    172175                     "&b" : "W",  
     
    459462        infileno = self.infile.fileno() 
    460463        self.copies = {} 
    461         self.minfile = minfile = mmap.mmap(infileno, os.fstat(infileno).st_size, access=mmap.ACCESS_READ) 
     464        self.minfile = minfile = mmap.mmap(infileno, os.fstat(infileno)[6], prot=mmap.PROT_READ, flags=mmap.MAP_SHARED) 
    462465        tags = self.tags 
    463466        self.pagecount = 0 
  • pykota/trunk/pykota/version.py

    r1592 r1599  
    2222# 
    2323 
    24 __version__ = "1.19alpha30_unofficial" 
     24__version__ = "1.19alpha31_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""