Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cef4b81

Browse files
committed
Merged revisions 72227 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r72227 | kurt.kaiser | 2009-05-02 22:05:22 -0400 (Sat, 02 May 2009) | 2 lines Further development of issue5559, handle Windows files which not only have embedded spaces, but leading spaces. ........
1 parent 81c447f commit cef4b81

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/idlelib/OutputWindow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ def flush(self):
5555
]
5656

5757
file_line_pats = [
58+
# order of patterns matters
5859
r'file "([^"]*)", line (\d+)',
5960
r'([^\s]+)\((\d+)\)',
60-
r'([^\s]+):\s*(\d+):',
61-
r'^\s*(\S+.*?):\s*(\d+):', # Win path with spaces, trim leading spaces
61+
r'^(\s*\S.*?):\s*(\d+):', # Win filename, maybe starting with spaces
62+
r'([^\s]+):\s*(\d+):', # filename or path, ltrim
63+
r'^\s*(\S.*?):\s*(\d+):', # Win abs path with embedded spaces, ltrim
6264
]
6365

6466
file_line_progs = None

0 commit comments

Comments
 (0)