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
94290d39
Commit
94290d39
authored
Apr 26, 2009
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Right click 'go to file/line' not working if spaces
in path. Bug 5559.
parent
4b965f6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
25 deletions
+13
-25
Lib/idlelib/NEWS.txt
Lib/idlelib/NEWS.txt
+3
-0
Lib/idlelib/OutputWindow.py
Lib/idlelib/OutputWindow.py
+10
-25
No files found.
Lib/idlelib/NEWS.txt
View file @
94290d39
...
...
@@ -3,6 +3,9 @@ What's New in IDLE 2.7a0?
*Release date: XX-XXX-2009*
- OutputWindow/PyShell right click menu "Go to file/line" wasn't working with
file paths containing spaces. Bug 5559.
- Windows: Version string for the .chm help file changed, file not being
accessed Patch 5783 Guilherme Polo
...
...
Lib/idlelib/OutputWindow.py
View file @
94290d39
...
...
@@ -63,6 +63,7 @@ class OutputWindow(EditorWindow):
r'file "([^"]*)", line (\
d+)
',
r'
([
^
\
s
]
+
)
\
((
\
d
+
)
\
)
',
r'
([
^
\
s
]
+
):
\
s
*
(
\
d
+
):
',
r'
^
\
s
*
(
\
S
+
.
*
?
):
\
s
*
(
\
d
+
):
', # Win path with spaces, trim leading spaces
]
file_line_progs = None
...
...
@@ -96,17 +97,17 @@ class OutputWindow(EditorWindow):
def _file_line_helper(self, line):
for prog in self.file_line_progs:
m = prog.search(line)
if m:
break
match = prog.search(line)
if match:
filename, lineno = match.group(1, 2)
try:
f = open(filename, "r")
f.close()
break
except IOError:
continue
else:
return None
filename, lineno = m.group(1, 2)
try:
f = open(filename, "r")
f.close()
except IOError:
return None
try:
return filename, int(lineno)
except TypeError:
...
...
@@ -139,19 +140,3 @@ class OnDemandOutputWindow:
text
.
tag_configure
(
tag
,
**
cnf
)
text
.
tag_raise
(
'sel'
)
self
.
write
=
self
.
owin
.
write
#class PseudoFile:
#
# def __init__(self, owin, tags, mark="end"):
# self.owin = owin
# self.tags = tags
# self.mark = mark
# def write(self, s):
# self.owin.write(s, self.tags, self.mark)
# def writelines(self, l):
# map(self.write, l)
# def flush(self):
# pass
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