Commits

Tarek Ziadé committed 2454c3b

io under py3

Comments (0)

Files changed (1)

flake8/tests/test_mccabe.py

 import unittest
 import sys
-from StringIO import StringIO
+try:
+    from StringIO import StringIO
+except ImportError:
+    from io import StringIO
 
 from flake8.mccabe import get_code_complexity