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
2070b18a
Commit
2070b18a
authored
Apr 10, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 fixes
parent
9691ec46
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+5
-5
No files found.
Cython/Compiler/ModuleNode.py
View file @
2070b18a
...
...
@@ -408,7 +408,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
for
module
in
modules
:
defined_here
=
module
is
env
modulecode
.
putln
(
"/* Module declarations from %s */"
%
module
.
qualified_name
.
encode
(
"ASCII"
,
"ignore"
)
)
module
.
qualified_name
)
self
.
generate_global_declarations
(
module
,
modulecode
,
defined_here
)
self
.
generate_cfunction_predeclarations
(
module
,
modulecode
,
defined_here
)
...
...
@@ -632,11 +632,11 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def
generate_includes
(
self
,
env
,
cimported_modules
,
code
):
includes
=
[]
for
filename
in
env
.
include_files
:
# fake decoding of filenames to their original byte sequence
if
filename
[
0
]
==
'<'
and
file
name
[
-
1
]
==
'>'
:
code
.
putln
(
'#include %s'
%
file
name
)
byte_decoded_filenname
=
str
(
filename
)
if
byte_decoded_filenname
[
0
]
==
'<'
and
byte_decoded_filen
name
[
-
1
]
==
'>'
:
code
.
putln
(
'#include %s'
%
byte_decoded_filen
name
)
else
:
code
.
putln
(
'#include "%s"'
%
file
name
)
code
.
putln
(
'#include "%s"'
%
byte_decoded_filen
name
)
def
generate_filename_table
(
self
,
code
):
code
.
putln
(
""
)
...
...
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