Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
74fe9f30
Commit
74fe9f30
authored
Jan 12, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16829: IDLE printing no longer fails if there are spaces or other
special characters in the file path.
parent
53221e37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Lib/idlelib/IOBinding.py
Lib/idlelib/IOBinding.py
+2
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/IOBinding.py
View file @
74fe9f30
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
()
...
...
Misc/NEWS
View file @
74fe9f30
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment