Fix StringIO module import to be compatible with Python3

This commit is contained in:
marmeladema 2019-10-14 18:19:07 +01:00
parent 5bd0fca140
commit bf66a08c02
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ import itertools
import json
import os
import re
import StringIO
from io import StringIO
import subprocess
import sys
@ -345,7 +345,7 @@ def check_flake8(file_name, contents):
"E501", # 80 character line length; the standard tidy process will enforce line length
}
output = StringIO.StringIO()
output = StringIO()
with stdout_redirect(output):
check_code(contents, ignore=ignore)
for error in output.getvalue().splitlines():