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
bb076b09
Commit
bb076b09
authored
Mar 09, 2010
by
Craig Citro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seperated -> separated
parent
2b1548d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Cython/CodeWriter.py
Cython/CodeWriter.py
+7
-7
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+1
-1
No files found.
Cython/CodeWriter.py
View file @
bb076b09
...
...
@@ -61,7 +61,7 @@ class CodeWriter(TreeVisitor):
self
.
startline
(
s
)
self
.
endline
()
def
comma_sep
e
rated_list
(
self
,
items
,
output_rhs
=
False
):
def
comma_sep
a
rated_list
(
self
,
items
,
output_rhs
=
False
):
if
len
(
items
)
>
0
:
for
item
in
items
[:
-
1
]:
self
.
visit
(
item
)
...
...
@@ -82,7 +82,7 @@ class CodeWriter(TreeVisitor):
def
visit_FuncDefNode
(
self
,
node
):
self
.
startline
(
u"def %s("
%
node
.
name
)
self
.
comma_sep
e
rated_list
(
node
.
args
)
self
.
comma_sep
a
rated_list
(
node
.
args
)
self
.
endline
(
u"):"
)
self
.
indent
()
self
.
visit
(
node
.
body
)
...
...
@@ -167,7 +167,7 @@ class CodeWriter(TreeVisitor):
def
visit_PrintStatNode
(
self
,
node
):
self
.
startline
(
u"print "
)
self
.
comma_sep
e
rated_list
(
node
.
arg_tuple
.
args
)
self
.
comma_sep
a
rated_list
(
node
.
arg_tuple
.
args
)
if
not
node
.
append_newline
:
self
.
put
(
u","
)
self
.
endline
()
...
...
@@ -181,7 +181,7 @@ class CodeWriter(TreeVisitor):
self
.
startline
(
u"cdef "
)
self
.
visit
(
node
.
base_type
)
self
.
put
(
u" "
)
self
.
comma_sep
e
rated_list
(
node
.
declarators
,
output_rhs
=
True
)
self
.
comma_sep
a
rated_list
(
node
.
declarators
,
output_rhs
=
True
)
self
.
endline
()
def
visit_ForInStatNode
(
self
,
node
):
...
...
@@ -200,12 +200,12 @@ class CodeWriter(TreeVisitor):
self
.
dedent
()
def
visit_SequenceNode
(
self
,
node
):
self
.
comma_sep
e
rated_list
(
node
.
args
)
# Might need to discover whether we need () around tuples...hmm...
self
.
comma_sep
a
rated_list
(
node
.
args
)
# Might need to discover whether we need () around tuples...hmm...
def
visit_SimpleCallNode
(
self
,
node
):
self
.
visit
(
node
.
function
)
self
.
put
(
u"("
)
self
.
comma_sep
e
rated_list
(
node
.
args
)
self
.
comma_sep
a
rated_list
(
node
.
args
)
self
.
put
(
")"
)
def
visit_GeneralCallNode
(
self
,
node
):
...
...
@@ -215,7 +215,7 @@ class CodeWriter(TreeVisitor):
if
isinstance
(
posarg
,
AsTupleNode
):
self
.
visit
(
posarg
.
arg
)
else
:
self
.
comma_sep
e
rated_list
(
posarg
)
self
.
comma_sep
a
rated_list
(
posarg
)
if
node
.
keyword_args
is
not
None
or
node
.
starstar_arg
is
not
None
:
raise
Exception
(
"Not implemented yet"
)
self
.
put
(
u")"
)
...
...
Cython/Compiler/Options.py
View file @
bb076b09
...
...
@@ -128,7 +128,7 @@ def parse_directive_value(name, value, relaxed_bool=False):
def
parse_directive_list
(
s
,
relaxed_bool
=
False
,
ignore_unknown
=
False
):
"""
Parses a comma-sep
e
rated list of pragma options. Whitespace
Parses a comma-sep
a
rated list of pragma options. Whitespace
is not considered.
>>> parse_directive_list(' ')
...
...
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