mirror of
https://github.com/gryf/pylint-vim.git
synced 2026-11-24 10:56:55 +01:00
Python3 compatibility for the StringIO
This commit is contained in:
1 parent
2565ed7c96
commit
0a2c744bd9
1 file changed
+4
-1
@@ -3,7 +3,10 @@ Get pylint oputput on current buffer
|
|||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
from StringIO import StringIO
|
try:
|
||||||
|
from StringIO import StringIO
|
||||||
|
except ImportError:
|
||||||
|
from io import StringIO
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from pylint import lint
|
from pylint import lint
|
||||||
|
|||||||
Reference in new issue
Block a user