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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f441bb7d
Commit
f441bb7d
authored
Mar 29, 2008
by
ChrisPerkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug 208262 for files with odd characters in them
parent
57aed717
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+4
-2
No files found.
Cython/Compiler/Main.py
View file @
f441bb7d
...
...
@@ -2,7 +2,7 @@
# Cython Top Level
#
import
os
,
sys
import
os
,
sys
,
re
if
sys
.
version_info
[:
2
]
<
(
2
,
2
):
print
>>
sys
.
stderr
,
"Sorry, Cython requires Python 2.2 or later"
sys
.
exit
(
1
)
...
...
@@ -166,7 +166,9 @@ class Context:
cwd
=
os
.
getcwd
()
if
full_module_name
is
None
:
full_module_name
,
_
=
os
.
path
.
splitext
(
source
.
replace
(
'/'
,
'.'
))
full_module_name
,
_
=
os
.
path
.
splitext
(
source
)
full_module_name
=
re
.
sub
(
r'[\\/]'
,
'.'
,
full_module_name
)
full_module_name
=
re
.
sub
(
r'[^\
w.]
', '
_
', full_module_name)
source = os.path.join(cwd, source)
...
...
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