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
1c1ad3af
Commit
1c1ad3af
authored
Nov 15, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include Python 2.6 in keyword string conversion (early releases didn't support unicode strings)
parent
956f1dfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+2
-2
No files found.
Cython/Compiler/Code.py
View file @
1c1ad3af
...
@@ -27,7 +27,7 @@ try:
...
@@ -27,7 +27,7 @@ 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
)
KEYWORDS_MUST_BE_BYTES
=
sys
.
version_info
<
(
2
,
7
)
non_portable_builtins_map
=
{
non_portable_builtins_map
=
{
...
@@ -142,7 +142,7 @@ class UtilityCodeBase(object):
...
@@ -142,7 +142,7 @@ class UtilityCodeBase(object):
type = '
Code
'
type = '
Code
'
utility = utilities.setdefault(name, [None, None, {}])
utility = utilities.setdefault(name, [None, None, {}])
else:
else:
tags.setdefault(
str(m.group(2)
), set()).add(m.group(3))
tags.setdefault(
m.group(2
), set()).add(m.group(3))
lines.append('') # keep line number correct
lines.append('') # keep line number correct
else:
else:
lines.append(replace_comments('', line).rstrip())
lines.append(replace_comments('', line).rstrip())
...
...
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