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
c4a17ab4
Commit
c4a17ab4
authored
Nov 14, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 fixes
parent
44f8d937
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+3
-3
No files found.
Cython/Compiler/Code.py
View file @
c4a17ab4
...
...
@@ -88,7 +88,7 @@ class UtilityCodeBase(object):
utility
[
1
]
=
code
if
tags
:
all_tags
=
utility
[
2
]
for
name
,
values
in
tags
.
ite
rite
ms
():
for
name
,
values
in
tags
.
items
():
if
KEYWORDS_MUST_BE_BYTES
:
name
=
name
.
encode
(
'ASCII'
)
all_tags
.
setdefault
(
name
,
set
()).
update
(
values
)
...
...
@@ -181,7 +181,7 @@ class UtilityCodeBase(object):
if
tags
:
orig_kwargs
=
kwargs
.
copy
()
for
name
,
values
in
tags
.
ite
rite
ms
():
for
name
,
values
in
tags
.
items
():
if
name
in
kwargs
:
continue
# only pass lists when we have to: most argument expect one value or None
...
...
@@ -302,7 +302,7 @@ class UtilityCode(UtilityCodeBase):
if
pyrex_type
is
not
None
:
data
[
'type'
]
=
pyrex_type
.
declaration_code
(
''
)
data
[
'type_name'
]
=
pyrex_type
.
specialization_name
()
key
=
tuple
(
sorted
(
data
.
ite
rite
ms
()))
key
=
tuple
(
sorted
(
data
.
items
()))
try
:
return
self
.
_cache
[
key
]
except
KeyError
:
...
...
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