# HG changeset patch # User RĂ©mi Cardona # Date 1406612201 -7200 # Node ID 16c554c76eb48f872dccc24ea54eb1e64e9e818e # Parent 313ce53a7232b9e28bba6ae20cd1e8006f30332e Remove obsolete __future__ imports Generators have been available since 2.3, "with" statements since 2.6. diff -r 313ce53a7232 -r 16c554c76eb4 doc/book/en/annexes/faq.rst --- 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 diff -r 313ce53a7232 -r 16c554c76eb4 doc/tools/pyjsrest.py --- 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 diff -r 313ce53a7232 -r 16c554c76eb4 utils.py --- 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 . """Some utilities for CubicWeb server/clients.""" -from __future__ import division, with_statement +from __future__ import division __docformat__ = "restructuredtext en" diff -r 313ce53a7232 -r 16c554c76eb4 web/http_headers.py --- 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