Commit 74fe9f30 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #16829: IDLE printing no longer fails if there are spaces or other

special characters in the file path.
parent 53221e37
import os
import types
import pipes
import sys
import codecs
import tempfile
......@@ -458,7 +459,7 @@ class IOBinding:
else: #no printing for this platform
printPlatform = False
if printPlatform: #we can try to print for this platform
command = command % filename
command = command % pipes.quote(filename)
pipe = os.popen(command, "r")
# things can get ugly on NT if there is no printer available.
output = pipe.read().strip()
......
......@@ -199,6 +199,9 @@ Core and Builtins
Library
-------
- Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.
- Issue #13899: \A, \Z, and \B now correctly match the A, Z, and B literals
when used inside character classes (e.g. '[\A]'). Patch by Matthew Barnett.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment