mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-03 03:01:51 +02:00
Prefer io over cStringIO and StringIO
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user