summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Cardona <remi.cardona@free.fr>2014-07-28 22:27:04 +0200
committerRémi Cardona <remi.cardona@free.fr>2014-07-28 22:27:04 +0200
commit0412e5fda38b8fe9b9165060307129f76aca2e7f (patch)
tree6f45a60b821289673c2fe910b5f856892a32fb8e
parenta87dae2de56b71a7cdc3f3bf074e74ea05db335a (diff)
downloadlogilab-common-0412e5fda38b8fe9b9165060307129f76aca2e7f.tar.gz
Remove obsolete __future__ imports (related to #264017)
Generators have been available since 2.3, "with" statements since 2.6.
-rw-r--r--compat.py1
-rw-r--r--modutils.py1
-rw-r--r--registry.py3
-rw-r--r--test/unittest_changelog.py1
-rw-r--r--test/unittest_registry.py1
-rw-r--r--ureports/__init__.py1
-rw-r--r--ureports/docbook_writer.py1
7 files changed, 0 insertions, 9 deletions
diff --git a/compat.py b/compat.py
index 8983ece..8b731f3 100644
--- a/compat.py
+++ b/compat.py
@@ -26,7 +26,6 @@ See another compatibility snippets from other projects:
:mod:`unittest2.compatibility`
"""
-from __future__ import generators
__docformat__ = "restructuredtext en"
diff --git a/modutils.py b/modutils.py
index d0cccf3..247b164 100644
--- a/modutils.py
+++ b/modutils.py
@@ -27,7 +27,6 @@
:type BUILTIN_MODULES: dict
:var BUILTIN_MODULES: dictionary with builtin module names has key
"""
-from __future__ import with_statement
__docformat__ = "restructuredtext en"
diff --git a/registry.py b/registry.py
index 7721d76..689f1f1 100644
--- a/registry.py
+++ b/registry.py
@@ -869,9 +869,6 @@ class traced_selection(object): # pylint: disable=C0103
... # some code in which you want to debug selectors
... # for all objects
- Don't forget the 'from __future__ import with_statement' at the module top-level
- if you're using python prior to 2.6.
-
This will yield lines like this in the logs::
selector one_line_rset returned 0 for <class 'elephant.Babar'>
diff --git a/test/unittest_changelog.py b/test/unittest_changelog.py
index dff9979..8fd0646 100644
--- a/test/unittest_changelog.py
+++ b/test/unittest_changelog.py
@@ -15,7 +15,6 @@
#
# You should have received a copy of the GNU Lesser General Public License along
# with logilab-common. If not, see <http://www.gnu.org/licenses/>.
-from __future__ import with_statement
from os.path import join, dirname
from cStringIO import StringIO
diff --git a/test/unittest_registry.py b/test/unittest_registry.py
index a15fe98..3d5eb1c 100644
--- a/test/unittest_registry.py
+++ b/test/unittest_registry.py
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with Logilab-Common. If not, see <http://www.gnu.org/licenses/>.
"""unit tests for selectors mechanism"""
-from __future__ import with_statement
import gc
import logging
diff --git a/ureports/__init__.py b/ureports/__init__.py
index dcffcfa..8e1f306 100644
--- a/ureports/__init__.py
+++ b/ureports/__init__.py
@@ -20,7 +20,6 @@
A way to create simple reports using python objects, primarily designed to be
formatted as text and html.
"""
-from __future__ import generators
__docformat__ = "restructuredtext en"
import sys
diff --git a/ureports/docbook_writer.py b/ureports/docbook_writer.py
index e75cbe0..a520364 100644
--- a/ureports/docbook_writer.py
+++ b/ureports/docbook_writer.py
@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with logilab-common. If not, see <http://www.gnu.org/licenses/>.
"""HTML formatting drivers for ureports"""
-from __future__ import generators
__docformat__ = "restructuredtext en"
from logilab.common.ureports import HTMLWriter