add missing imports
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 14 Oct 2011 13:36:39 +0200
changeset 7956 db49658b2812
parent 7955 f4c97d3c8b93
child 7958 646d44232b5a
add missing imports
utils.py
web/views/facets.py
--- a/utils.py	Fri Oct 14 10:34:08 2011 +0200
+++ b/utils.py	Fri Oct 14 13:36:39 2011 +0200
@@ -16,7 +16,9 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """Some utilities for CubicWeb server/clients."""
-from __future__ import division
+
+from __future__ import division, with_statement
+
 __docformat__ = "restructuredtext en"
 
 import sys
--- a/web/views/facets.py	Fri Oct 14 10:34:08 2011 +0200
+++ b/web/views/facets.py	Fri Oct 14 13:36:39 2011 +0200
@@ -20,6 +20,8 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+from warnings import warn
+
 from logilab.mtconverter import xml_escape
 
 from cubicweb.appobject import objectify_selector