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
afdfaec6
Commit
afdfaec6
authored
Oct 13, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix parser compilation
parent
77cbab3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Parsing.pxd
Cython/Compiler/Parsing.pxd
+1
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+2
-2
No files found.
Cython/Compiler/Parsing.pxd
View file @
afdfaec6
...
@@ -46,7 +46,7 @@ cdef p_power(PyrexScanner s)
...
@@ -46,7 +46,7 @@ cdef p_power(PyrexScanner s)
cdef
p_new_expr
(
PyrexScanner
s
)
cdef
p_new_expr
(
PyrexScanner
s
)
cdef
p_trailer
(
PyrexScanner
s
,
node1
)
cdef
p_trailer
(
PyrexScanner
s
,
node1
)
cpdef
p_call_parse_args
(
PyrexScanner
s
,
bint
allow_genexp
=
*
)
cpdef
p_call_parse_args
(
PyrexScanner
s
,
bint
allow_genexp
=
*
)
cdef
p_call_build_packed_args
(
pos
,
positional_args
,
keyword_args
,
star_arg
)
cdef
p_call_build_packed_args
(
pos
,
positional_args
,
keyword_args
,
star_arg
,
starstar_arg
)
cdef
p_call
(
PyrexScanner
s
,
function
)
cdef
p_call
(
PyrexScanner
s
,
function
)
cdef
p_index
(
PyrexScanner
s
,
base
)
cdef
p_index
(
PyrexScanner
s
,
base
)
cdef
p_subscript_list
(
PyrexScanner
s
)
cdef
p_subscript_list
(
PyrexScanner
s
)
...
...
Cython/Compiler/Parsing.py
View file @
afdfaec6
...
@@ -441,7 +441,7 @@ def p_call_parse_args(s, allow_genexp = True):
...
@@ -441,7 +441,7 @@ def p_call_parse_args(s, allow_genexp = True):
return
positional_args
,
keyword_args
,
star_arg
,
starstar_arg
return
positional_args
,
keyword_args
,
star_arg
,
starstar_arg
def
p_call_build_packed_args
(
pos
,
positional_args
,
keyword_args
,
def
p_call_build_packed_args
(
pos
,
positional_args
,
keyword_args
,
star_arg
,
starstar_arg
=
None
):
star_arg
,
starstar_arg
):
arg_tuple
=
None
arg_tuple
=
None
keyword_dict
=
None
keyword_dict
=
None
if
positional_args
or
not
star_arg
:
if
positional_args
or
not
star_arg
:
...
@@ -2779,7 +2779,7 @@ def p_class_statement(s, decorators):
...
@@ -2779,7 +2779,7 @@ def p_class_statement(s, decorators):
positional_args
,
keyword_args
,
star_arg
,
starstar_arg
=
\
positional_args
,
keyword_args
,
star_arg
,
starstar_arg
=
\
p_call_parse_args
(
s
,
allow_genexp
=
False
)
p_call_parse_args
(
s
,
allow_genexp
=
False
)
arg_tuple
,
keyword_dict
=
p_call_build_packed_args
(
arg_tuple
,
keyword_dict
=
p_call_build_packed_args
(
pos
,
positional_args
,
keyword_args
,
star_arg
)
pos
,
positional_args
,
keyword_args
,
star_arg
,
None
)
if
arg_tuple
is
None
:
if
arg_tuple
is
None
:
# XXX: empty arg_tuple
# XXX: empty arg_tuple
arg_tuple
=
ExprNodes
.
TupleNode
(
pos
,
args
=
[])
arg_tuple
=
ExprNodes
.
TupleNode
(
pos
,
args
=
[])
...
...
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