From dc18e3b82f0680d2e8ff64f9f526ca3ff5eff48b Mon Sep 17 00:00:00 2001 From: pycook Date: Fri, 8 Nov 2019 15:15:31 +0800 Subject: [PATCH] fix py2.7 unicode encoding error --- api/lib/cmdb/query_sql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/lib/cmdb/query_sql.py b/api/lib/cmdb/query_sql.py index c84fd64..84a1ec6 100644 --- a/api/lib/cmdb/query_sql.py +++ b/api/lib/cmdb/query_sql.py @@ -1,5 +1,7 @@ # -*- coding:utf-8 -*- +from __future__ import unicode_literals + QUERY_CIS_BY_VALUE_TABLE = """ SELECT attr.name AS attr_name, @@ -61,3 +63,4 @@ QUERY_CI_BY_TYPE = """ FROM c_cis WHERE c_cis.type_id in ({0}) """ +