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
4c2b18da
Commit
4c2b18da
authored
Jul 25, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix output writing in Py2 where io.StringIO does not support writing 'str'
parent
38abf1b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+4
-1
Cython/StringIOTree.py
Cython/StringIOTree.py
+4
-1
No files found.
Cython/Compiler/Annotate.py
View file @
4c2b18da
...
...
@@ -11,7 +11,10 @@ from datetime import datetime
from
functools
import
partial
from
collections
import
defaultdict
from
xml.sax.saxutils
import
escape
as
html_escape
from
io
import
StringIO
try
:
from
StringIO
import
StringIO
except
ImportError
:
from
io
import
StringIO
# does not support writing 'str' in Py2
from
.
import
Version
from
.Code
import
CCodeWriter
...
...
Cython/StringIOTree.py
View file @
4c2b18da
from
io
import
StringIO
try
:
from
StringIO
import
StringIO
except
ImportError
:
from
io
import
StringIO
# does not support writing 'str' in Py2
class
StringIOTree
(
object
):
...
...
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