web/test/unittest_views_basecontrollers.py
changeset 8694 d901c36bcfce
parent 8594 001159e2e4f3
child 8803 47dd517d6c6f
equal deleted inserted replaced
8693:a6ca96ec8693 8694:d901c36bcfce
    14 # details.
    14 # details.
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """cubicweb.web.views.basecontrollers unit tests"""
    18 """cubicweb.web.views.basecontrollers unit tests"""
    19 
       
    20 from __future__ import with_statement
       
    21 
    19 
    22 from urlparse import urlsplit, urlunsplit, urljoin
    20 from urlparse import urlsplit, urlunsplit, urljoin
    23 # parse_qs is deprecated in cgi and has been moved to urlparse in Python 2.6
    21 # parse_qs is deprecated in cgi and has been moved to urlparse in Python 2.6
    24 try:
    22 try:
    25     from urlparse import parse_qs as url_parse_query
    23     from urlparse import parse_qs as url_parse_query