[Bugfix] 兼容py3

This commit is contained in:
ibuler
2017-04-07 19:11:27 +08:00
parent b913bce398
commit a320b9e05e
12 changed files with 21 additions and 24 deletions

View File

@@ -17,10 +17,10 @@ from common.utils import reverse, get_object_or_none
from .models import User
try:
import cStringIO as StringIO
except ImportError:
import StringIO
# try:
# from io import StringIO
# except ImportError:
# from StringIO import StringIO
logger = logging.getLogger('jumpserver')