summaryrefslogtreecommitdiffstats
path: root/Python/formatter_string.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-04-18 09:07:49 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-04-18 09:07:49 (GMT)
commitb2a0a434a83ef94f5b0b72ed1465be2ca967439e (patch)
tree74f7d12cd9139c864aeff281c43be2f1af56f41b /Python/formatter_string.c
parent24f09fdb230c346303aef15b25f31fdb8cb431db (diff)
downloadcpython-b2a0a434a83ef94f5b0b72ed1465be2ca967439e.zip
cpython-b2a0a434a83ef94f5b0b72ed1465be2ca967439e.tar.gz
cpython-b2a0a434a83ef94f5b0b72ed1465be2ca967439e.tar.bz2
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
Diffstat (limited to 'Python/formatter_string.c')
0 files changed, 0 insertions, 0 deletions