Commits

Serhiy Storchaka committed 2006562 Draft

Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.

  • Participants
  • Parent commits 58ce6ac
  • Branches 3.2

Comments (0)

Files changed (2)

Lib/idlelib/IOBinding.py

 import os
 import types
+import pipes
 import sys
 import codecs
 import tempfile
         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()
 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.