Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
fe346e37
Commit
fe346e37
authored
Aug 16, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StringIO comes in different modules when in Python 2.x or 3.x
parent
44783c06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
configparser.py
hdlmake/manifest_parser/configparser.py
+5
-2
No files found.
hdlmake/manifest_parser/configparser.py
View file @
fe346e37
...
...
@@ -26,7 +26,10 @@ from __future__ import absolute_import
import
logging
import
os
import
sys
import
StringIO
if
not
sys
.
version
[
0
]
is
"2"
:
from
io
import
StringIO
else
:
from
StringIO
import
StringIO
import
contextlib
...
...
@@ -36,7 +39,7 @@ def stdout_io(stdout=None):
the executed Manifest.py files"""
old
=
sys
.
stdout
if
stdout
is
None
:
stdout
=
StringIO
.
StringIO
()
stdout
=
StringIO
()
sys
.
stdout
=
stdout
yield
stdout
sys
.
stdout
=
old
...
...
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