mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
io under py3
This commit is contained in:
parent
0d0d5d84b5
commit
b97f9f542d
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
from StringIO import StringIO
|
try:
|
||||||
|
from StringIO import StringIO
|
||||||
|
except ImportError:
|
||||||
|
from io import StringIO
|
||||||
|
|
||||||
from flake8.mccabe import get_code_complexity
|
from flake8.mccabe import get_code_complexity
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue