Changeset 425 for pkpgcounter

Show
Ignore:
Timestamp:
10/16/06 18:31:45 (18 years ago)
Author:
jerome
Message:

Ensure to close the child's stdin in all cases.

Location:
pkpgcounter/trunk/pkpgpdls
Files:
2 modified

Legend:

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

    r415 r425  
    9090        """    
    9191        if self.totiffcommand : 
    92             child = popen2.Popen4(self.totiffcommand % locals()) 
     92            commandline = self.totiffcommand % locals() 
     93            child = popen2.Popen4(commandline) 
    9394            try : 
    9495                try : 
     
    9798                        child.tochild.write(data) 
    9899                        data = self.infile.read(MEGABYTE) 
    99                     child.tochild.flush() 
    100                     child.tochild.close()     
    101100                except (IOError, OSError), msg :     
    102101                    raise PDLParserError, "Problem during conversion to TIFF : %s" % msg 
    103102            finally :     
     103                child.tochild.close()     
    104104                child.fromchild.close() 
    105105                 
  • pkpgcounter/trunk/pkpgpdls/version.py

    r418 r425  
    2323 
    2424 
    25 __version__ = "2.10" 
     25__version__ = "2.11alpha" 
    2626 
    2727__doc__ = """pkpgcounter : a generic Page Description Languages parser."""