mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-04 14:49:36 +00:00
Prefer io over cStringIO and StringIO
This commit is contained in:
parent
1642d0669f
commit
9806e401e0
1 changed files with 3 additions and 3 deletions
|
|
@ -131,11 +131,11 @@ except ImportError:
|
|||
PARSER_TYPE_STR = 'string'
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
BytesIO = None
|
||||
from io import StringIO, BytesIO, TextIOWrapper, FileIO
|
||||
except ImportError:
|
||||
try:
|
||||
from io import StringIO, BytesIO, TextIOWrapper, FileIO
|
||||
from cStringIO import StringIO
|
||||
BytesIO = None
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
BytesIO = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue