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
519c3a2b
Commit
519c3a2b
authored
Jul 12, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Python3 next, encoding.
parent
a687fae6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
runtests.py
runtests.py
+8
-2
No files found.
runtests.py
View file @
519c3a2b
...
@@ -68,6 +68,12 @@ try:
...
@@ -68,6 +68,12 @@ try:
except
NameError
:
except
NameError
:
basestring
=
str
basestring
=
str
try
:
next
except
NameError
:
def
next
(
iter
):
return
iter
.
next
()
WITH_CYTHON
=
True
WITH_CYTHON
=
True
CY3_DIR
=
None
CY3_DIR
=
None
...
@@ -165,7 +171,7 @@ def def_to_cdef(source):
...
@@ -165,7 +171,7 @@ def def_to_cdef(source):
else:
else:
args_no_types = ""
args_no_types = ""
output.append("def %s(%s):" % (name, args_no_types))
output.append("def %s(%s):" % (name, args_no_types))
line =
lines.next(
)
line =
next(lines
)
if '"""' in line:
if '"""' in line:
has_docstring = True
has_docstring = True
output.append(line)
output.append(line)
...
@@ -742,7 +748,7 @@ class CythonCompileTestCase(unittest.TestCase):
...
@@ -742,7 +748,7 @@ class CythonCompileTestCase(unittest.TestCase):
if self.preparse and self.preparse != 'id':
if self.preparse and self.preparse != 'id':
preparse_func = globals()[self.preparse]
preparse_func = globals()[self.preparse]
def copy(src, dest):
def copy(src, dest):
open(dest, 'w
b
').write(preparse_func(open(src).read()))
open(dest, 'w').write(preparse_func(open(src).read()))
else:
else:
# use symlink on Unix, copy on Windows
# use symlink on Unix, copy on Windows
try:
try:
...
...
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