Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
fc4d504f
Commit
fc4d504f
authored
Jan 27, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #480 from insertinterestingnamehere/line_path_fix
Fix generated `#line` directives on Windows
parents
3588bcab
ea76488c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+4
-1
No files found.
Cython/Compiler/Scanning.py
View file @
fc4d504f
...
...
@@ -158,8 +158,11 @@ class SourceDescriptor(object):
def
get_escaped_description
(
self
):
if
self
.
_escaped_description
is
None
:
self
.
_escaped_description
=
\
esc_desc
=
\
self
.
get_description
().
encode
(
'ASCII'
,
'replace'
).
decode
(
"ASCII"
)
# Use foreward slashes on Windows since these paths
# will be used in the #line directives in the C/C++ files.
self
.
_escaped_description
=
esc_desc
.
replace
(
'
\
\
'
,
'/'
)
return
self
.
_escaped_description
def
__gt__
(
self
,
other
):
...
...
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