Fix a Python 2.5 regression introduced by previous commit stable
authorDavid Douard <david.douard@logilab.fr>
Thu, 05 Apr 2012 22:42:40 +0200
branchstable
changeset 8343 6bd8db130476
parent 8342 7a5271182ef0
child 8344 9eda40a9ec08
Fix a Python 2.5 regression introduced by previous commit
server/test/unittest_postgres.py
server/test/unittest_querier.py
--- a/server/test/unittest_postgres.py	Mon Mar 26 12:11:48 2012 +0200
+++ b/server/test/unittest_postgres.py	Thu Apr 05 22:42:40 2012 +0200
@@ -1,3 +1,21 @@
+# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
+#
+# This file is part of CubicWeb.
+#
+# CubicWeb is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# CubicWeb is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
+
 from __future__ import with_statement
 
 import socket
--- a/server/test/unittest_querier.py	Mon Mar 26 12:11:48 2012 +0200
+++ b/server/test/unittest_querier.py	Thu Apr 05 22:42:40 2012 +0200
@@ -18,6 +18,8 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """unit tests for modules cubicweb.server.querier and cubicweb.server.ssplanner
 """
+from __future__ import with_statement
+
 from datetime import date, datetime, timedelta, tzinfo
 
 from logilab.common.testlib import TestCase, unittest_main