Commit 3db3d70f authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[toward-py3k] remove import with_statement (part of #2711624)

They are unneeded since we dropped python 2.5 compatibility. This will help
Python 3.3 experimentation.
parent a6ca96ec8693
......@@ -18,8 +18,6 @@
"""CubicWeb is a generic framework to quickly build applications which describes
relations between entitites.
"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
# ignore the pygments UserWarnings
......
......@@ -17,8 +17,6 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""Test tools for cubicweb"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
import os
......
......@@ -18,8 +18,6 @@
"""this module contains base classes and utilities for integration with running
http server
"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
import threading
......
......@@ -16,7 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""unittests for cw.devtools.testlib module"""
from __future__ import with_statement
from cStringIO import StringIO
......
......@@ -16,9 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""this module contains base classes and utilities for cubicweb tests"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
import os
......
......@@ -17,9 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""unit tests for cubicweb.entities.base module
"""
from __future__ import with_statement
from logilab.common.testlib import unittest_main
from logilab.common.decorators import clear_cache
......
......@@ -16,8 +16,6 @@
# 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
from cubicweb import ValidationError
from cubicweb.devtools.testlib import CubicWebTC
......
......@@ -16,9 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""twisted server for CubicWeb web instances"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
import sys
......
......@@ -21,7 +21,6 @@
Note:
syncschema.py hooks are mostly tested in server/test/unittest_migrations.py
"""
from __future__ import with_statement
from datetime import datetime
......
......@@ -18,8 +18,6 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""functional tests for integrity hooks"""
from __future__ import with_statement
from cubicweb import ValidationError
from cubicweb.devtools.testlib import CubicWebTC
......
......@@ -21,7 +21,6 @@
Note:
syncschema.py hooks are mostly tested in server/test/unittest_migrations.py
"""
from __future__ import with_statement
from cubicweb import ValidationError
from cubicweb.devtools.testlib import CubicWebTC
......
from __future__ import with_statement
from cubicweb.server.session import hooks_control
for uri, cfg in config.sources().items():
......
from __future__ import with_statement
import sys
if confirm('fix some corrupted entities noticed on several instances?'):
rql('DELETE CWConstraint X WHERE NOT E constrained_by X')
rql('SET X is_instance_of Y WHERE X is Y, NOT X is_instance_of Y')
......
......@@ -19,7 +19,6 @@
it should only include low level schema changes
"""
from __future__ import with_statement
from cubicweb.server.session import hooks_control
from cubicweb.server import schemaserial as ss
......
......@@ -4,7 +4,6 @@ FYI, this migration occurred :
* on our intranet on July 07 2010
* on our extranet on July 16 2010
"""
from __future__ import with_statement
try:
backupinstance, = __args__
......
......@@ -20,8 +20,6 @@ tree.
This is used for instance for read security checking in the repository.
"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
from rql import nodes as n, stmts, TypeResolverException
......
......@@ -21,8 +21,6 @@
The server module contains functions to initialize a new repository.
"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
import sys
......
......@@ -20,9 +20,6 @@
* integrity of a CubicWeb repository. Hum actually only the system database is
checked.
"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
import sys
......
......@@ -16,9 +16,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""helper classes to handle server-side edition of entities"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
from copy import copy
......
......@@ -245,9 +245,6 @@ Hooks and operations classes
.. autoclass:: cubicweb.server.hook.LateOperation
.. autoclass:: cubicweb.server.hook.DataOperationMixIn
"""
from __future__ import with_statement
__docformat__ = "restructuredtext en"
from warnings import warn
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment