[PATCH 1 of 2 bootstrap] Drop workaround absence of cubicweb._

Denis Laxalde denis.laxalde at logilab.fr
Mon Jun 4 14:55:22 CEST 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1528116692 -7200
#      Mon Jun 04 14:51:32 2018 +0200
# Node ID f28609975dd7547e8db01d122ba399a29eb4b241
# Parent  eca57eb98d50d8e75c8d064f95331ffbd664a49f
# Available At http://hg.logilab.org/review/cubes/bootstrap
#              hg pull http://hg.logilab.org/review/cubes/bootstrap -r f28609975dd7
# EXP-Topic py3
Drop workaround absence of cubicweb._

We already depends on cubicweb>=3.24, which has _ defined.

diff --git a/cubicweb_bootstrap/views/basetemplates.py b/cubicweb_bootstrap/views/basetemplates.py
--- a/cubicweb_bootstrap/views/basetemplates.py
+++ b/cubicweb_bootstrap/views/basetemplates.py
@@ -11,16 +11,13 @@
 from logilab.common.decorators import monkeypatch
 from logilab.mtconverter import xml_escape
 
+from cubicweb import _
 from cubicweb.predicates import anonymous_user, match_kwargs
 from cubicweb.web import formwidgets as fw
 from cubicweb.web.views import basetemplates# import LogForm, LogFormView
 
 from cubicweb_bootstrap import CW_325
 
-try:
-    from cubicweb import _
-except ImportError:
-    _ = unicode
 
 basetemplates.LogForm.needs_css = ()
 basetemplates.LogForm.form_buttons = [


More information about the cubicweb-devel mailing list