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
9ecc5dfd
Commit
9ecc5dfd
authored
Nov 14, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py2.[45] fix
parent
1e5476fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+5
-0
No files found.
Cython/Compiler/Code.py
View file @
9ecc5dfd
...
@@ -11,6 +11,7 @@ cython.declare(os=object, re=object, operator=object,
...
@@ -11,6 +11,7 @@ cython.declare(os=object, re=object, operator=object,
import
os
import
os
import
re
import
re
import
sys
import
operator
import
operator
import
Naming
import
Naming
...
@@ -26,6 +27,8 @@ try:
...
@@ -26,6 +27,8 @@ try:
except
ImportError
:
except
ImportError
:
from
builtins
import
str
as
basestring
from
builtins
import
str
as
basestring
KEYWORDS_MUST_BE_BYTES
=
sys
.
version_info
<
(
2
,
6
)
non_portable_builtins_map
=
{
non_portable_builtins_map
=
{
# builtins that have different names in different Python versions
# builtins that have different names in different Python versions
...
@@ -86,6 +89,8 @@ class UtilityCodeBase(object):
...
@@ -86,6 +89,8 @@ class UtilityCodeBase(object):
if
tags
:
if
tags
:
all_tags
=
utility
[
2
]
all_tags
=
utility
[
2
]
for
name
,
values
in
tags
.
iteritems
():
for
name
,
values
in
tags
.
iteritems
():
if
KEYWORDS_MUST_BE_BYTES
:
name
=
name
.
encode
(
'ASCII'
)
all_tags
.
setdefault
(
name
,
set
()).
update
(
values
)
all_tags
.
setdefault
(
name
,
set
()).
update
(
values
)
@
classmethod
@
classmethod
...
...
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