• Victor Stinner's avatar
    Merged revisions 80166 via svnmerge from · 38148ea5
    Victor Stinner authored
    svn+ssh://pythondev@svn.python.org/python/trunk
    
    ........
      r80166 | victor.stinner | 2010-04-18 11:07:49 +0200 (dim., 18 avril 2010) | 7 lines
    
      platform: use subprocess.Popen() instead of os.popen() in _syscmd_file()
    
       * Popen() avoids ugly shell escape: target.replace('"', '\\"')
       * Use proc.communicate() instead of f.stdout.read()
       * Get output from stdout by splitting with ": " instead of splitting by spaces
         to support filename with spaces
    ........
    38148ea5
platform.py 49.1 KB