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
a4801a71
Commit
a4801a71
authored
Jul 26, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some dict iteration usages in Py3
parent
33c79ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Build/Inline.py
Cython/Build/Inline.py
+2
-2
No files found.
Cython/Build/Inline.py
View file @
a4801a71
...
@@ -146,7 +146,7 @@ def cython_inline(code,
...
@@ -146,7 +146,7 @@ def cython_inline(code,
# Parsing from strings not fully supported (e.g. cimports).
# Parsing from strings not fully supported (e.g. cimports).
print
(
"Could not parse code as a string (to extract unbound symbols)."
)
print
(
"Could not parse code as a string (to extract unbound symbols)."
)
cimports
=
[]
cimports
=
[]
for
name
,
arg
in
kwds
.
items
(
):
for
name
,
arg
in
list
(
kwds
.
items
()
):
if
arg
is
cython_module
:
if
arg
is
cython_module
:
cimports
.
append
(
'
\
n
cimport cython as %s'
%
name
)
cimports
.
append
(
'
\
n
cimport cython as %s'
%
name
)
del
kwds
[
name
]
del
kwds
[
name
]
...
@@ -274,7 +274,7 @@ except ImportError:
...
@@ -274,7 +274,7 @@ except ImportError:
all
[
varargs
]
=
arg_values
[
len
(
args
):]
all
[
varargs
]
=
arg_values
[
len
(
args
):]
for
name
,
value
in
zip
(
args
,
arg_values
):
for
name
,
value
in
zip
(
args
,
arg_values
):
all
[
name
]
=
value
all
[
name
]
=
value
for
name
,
value
in
kwd_values
.
items
(
):
for
name
,
value
in
list
(
kwd_values
.
items
()
):
if
name
in
args
:
if
name
in
args
:
if
name
in
all
:
if
name
in
all
:
raise
TypeError
(
"Duplicate argument %s"
%
name
)
raise
TypeError
(
"Duplicate argument %s"
%
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