[PATCH 1 of 4 [leaflet]] [python3] import _ from cubicweb, don't use the 'unicode' builtin

adrien.dimascio at logilab.fr adrien.dimascio at logilab.fr
Sat Jun 9 18:09:31 CEST 2018


# HG changeset patch
# User Adrien Di Mascio <Adrien.DiMascio at logilab.fr>
# Date 1525278483 -7200
#      mer. mai 02 18:28:03 2018 +0200
# Node ID 322c68362d40b837c3452acab22acd69be62b30e
# Parent  b33b719b43486079d2023fd60d20d7d21c4e257f
[python3] import _ from cubicweb, don't use the 'unicode' builtin

diff --git a/cubicweb_leaflet/views.py b/cubicweb_leaflet/views.py
--- a/cubicweb_leaflet/views.py
+++ b/cubicweb_leaflet/views.py
@@ -16,16 +16,16 @@
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-leaflet views/forms/actions/components for web ui"""
 import json
 
 from logilab.mtconverter import xml_escape
+
+from cubicweb import _
 from cubicweb.utils import js_dumps, make_uid, JSString
 from cubicweb.predicates import multi_columns_rset, adaptable
 from cubicweb.view import AnyRsetView
 
-_ = unicode
-
 
 #############################################################################
 # LEAFLET OBJECT ############################################################
 #############################################################################
 class LeafletMap(object):


More information about the cubicweb-devel mailing list