Remove obsolete __future__ imports
Generators have been available since 2.3, "with" statements since 2.6.
--- a/doc/book/en/annexes/faq.rst Tue Aug 19 12:04:23 2014 +0200
+++ b/doc/book/en/annexes/faq.rst Tue Jul 29 07:36:41 2014 +0200
@@ -197,9 +197,6 @@
except NoSelectableObject:
continue
-Don't forget the 'from __future__ import with_statement' at the module
-top-level if you're using python 2.5.
-
This will yield additional WARNINGs, like this::
2009-01-09 16:43:52 - (cubicweb.selectors) WARNING: selector one_line_rset returned 0 for <class 'cubicweb.web.views.basecomponents.WFHistoryVComponent'>
--- a/doc/tools/pyjsrest.py Tue Aug 19 12:04:23 2014 +0200
+++ b/doc/tools/pyjsrest.py Tue Jul 29 07:36:41 2014 +0200
@@ -2,8 +2,6 @@
"""
Parser for Javascript comments.
"""
-from __future__ import with_statement
-
import os.path as osp
import sys, os, getopt, re
--- a/utils.py Tue Aug 19 12:04:23 2014 +0200
+++ b/utils.py Tue Jul 29 07:36:41 2014 +0200
@@ -17,7 +17,7 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""Some utilities for CubicWeb server/clients."""
-from __future__ import division, with_statement
+from __future__ import division
__docformat__ = "restructuredtext en"
--- a/web/http_headers.py Tue Aug 19 12:04:23 2014 +0200
+++ b/web/http_headers.py Tue Jul 29 07:36:41 2014 +0200
@@ -2,8 +2,6 @@
# http://twistedmatrix.com/trac/wiki/TwistedWeb2
-from __future__ import generators
-
import types, time
from calendar import timegm
import base64