Use six.StringIO/BytesIO instead of StringIO.StringIO

to keep Python 3.x compatibility, use six.StringIO/BytesIO to
replace StringIO.StringIO

StringIO works for unicode
BytesIO works for bytes

Change-Id: Icffbbc8b1fcbf2003f7206530c4cd13fd376a59a
Closes-Bug: #1280100
This commit is contained in:
He Yongli
2014-02-17 13:15:40 +08:00
committed by Yongli He
parent 33bfce2280
commit 0077f4afc2
2 changed files with 5 additions and 2 deletions

View File

@@ -17,3 +17,5 @@ mox>=0.5.3
testtools>=0.9.34
discover
testrepository>=0.0.18
six>=1.6.0