cache强制unicode编码

This commit is contained in:
pycook 2019-08-30 09:46:24 +08:00 committed by pycook
parent 38dabc35e5
commit 55dad7a58c
1 changed files with 1 additions and 5 deletions

View File

@ -1,10 +1,6 @@
# -*- coding:utf-8 -*-
import six
if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from __future__ import unicode_literals
from api.extensions import cache
from api.models.cmdb import Attribute