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
cf77ad03
Commit
cf77ad03
authored
Mar 09, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes to get it to run on 2.3
parent
0e55d5f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+1
-1
Cython/Compiler/Transform.py
Cython/Compiler/Transform.py
+2
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
cf77ad03
...
@@ -57,7 +57,7 @@ def parse_command_line(args):
...
@@ -57,7 +57,7 @@ def parse_command_line(args):
if
modsplitpt
==
-
1
:
bad_usage
()
if
modsplitpt
==
-
1
:
bad_usage
()
modulename
=
fqn
[:
modsplitpt
]
modulename
=
fqn
[:
modsplitpt
]
symbolname
=
fqn
[
modsplitpt
+
1
:]
symbolname
=
fqn
[
modsplitpt
+
1
:]
module
=
__import__
(
modulename
,
fromlist
=
[
symbolname
],
level
=
0
)
module
=
__import__
(
modulename
,
globals
(),
locals
(),
[
symbolname
]
)
return
getattr
(
module
,
symbolname
)
return
getattr
(
module
,
symbolname
)
stagename
,
factoryname
=
param
.
split
(
":"
)
stagename
,
factoryname
=
param
.
split
(
":"
)
...
...
Cython/Compiler/Transform.py
View file @
cf77ad03
...
@@ -105,7 +105,8 @@ PHASES = [
...
@@ -105,7 +105,8 @@ PHASES = [
class
TransformSet
(
dict
):
class
TransformSet
(
dict
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
update
([(
name
,
[])
for
name
in
PHASES
])
for
name
in
PHASES
:
self
[
name
]
=
[]
def
run
(
self
,
name
,
node
,
**
options
):
def
run
(
self
,
name
,
node
,
**
options
):
assert
name
in
self
assert
name
in
self
for
transform
in
self
[
name
]:
for
transform
in
self
[
name
]:
...
...
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