# HG changeset patch # User David Douard # Date 1409653338 -7200 # Node ID 0d831b40fa48dc9a7a0f8596cbe6e69460d0ce7a # Parent aee99876eb101227a1b43f03da6f099740d8f133 [compat] Remove imports of "any" and "all" from lgc (closes #4306044) They're builtin since python 2.5. diff -r aee99876eb10 -r 0d831b40fa48 entities/wfobjs.py --- a/entities/wfobjs.py Thu Jun 12 12:28:10 2014 +0200 +++ b/entities/wfobjs.py Tue Sep 02 12:22:18 2014 +0200 @@ -27,7 +27,6 @@ from logilab.common.decorators import cached, clear_cache from logilab.common.deprecation import deprecated -from logilab.common.compat import any from cubicweb.entities import AnyEntity, fetch_config from cubicweb.view import EntityAdapter diff -r aee99876eb10 -r 0d831b40fa48 hooks/email.py --- a/hooks/email.py Thu Jun 12 12:28:10 2014 +0200 +++ b/hooks/email.py Tue Sep 02 12:22:18 2014 +0200 @@ -21,8 +21,6 @@ from cubicweb.server import hook -from logilab.common.compat import any - class SetUseEmailRelationOp(hook.Operation): """delay this operation to commit to avoid conflict with a late rql query diff -r aee99876eb10 -r 0d831b40fa48 predicates.py --- a/predicates.py Thu Jun 12 12:28:10 2014 +0200 +++ b/predicates.py Tue Sep 02 12:22:18 2014 +0200 @@ -188,7 +188,6 @@ from warnings import warn from operator import eq -from logilab.common.compat import all, any from logilab.common.interface import implements as implements_iface from logilab.common.registry import Predicate, objectify_predicate, yes diff -r aee99876eb10 -r 0d831b40fa48 schema.py --- a/schema.py Thu Jun 12 12:28:10 2014 +0200 +++ b/schema.py Tue Sep 02 12:22:18 2014 +0200 @@ -31,7 +31,6 @@ from logilab.common.deprecation import deprecated, class_moved, moved from logilab.common.textutils import splitstrip from logilab.common.graph import get_cycles -from logilab.common.compat import any from yams import BadSchemaDefinition, buildobjs as ybo from yams.schema import Schema, ERSchema, EntitySchema, RelationSchema, \ diff -r aee99876eb10 -r 0d831b40fa48 server/msplanner.py --- a/server/msplanner.py Thu Jun 12 12:28:10 2014 +0200 +++ b/server/msplanner.py Tue Sep 02 12:22:18 2014 +0200 @@ -90,7 +90,6 @@ from itertools import imap, ifilterfalse -from logilab.common.compat import any from logilab.common.decorators import cached from logilab.common.deprecation import deprecated diff -r aee99876eb10 -r 0d831b40fa48 server/querier.py --- a/server/querier.py Thu Jun 12 12:28:10 2014 +0200 +++ b/server/querier.py Tue Sep 02 12:22:18 2014 +0200 @@ -22,7 +22,6 @@ from itertools import repeat -from logilab.common.compat import any from rql import RQLSyntaxError, CoercionError from rql.stmts import Union from rql.nodes import ETYPE_PYOBJ_MAP, etype_from_pyobj, Relation, Exists, Not diff -r aee99876eb10 -r 0d831b40fa48 server/repository.py --- a/server/repository.py Thu Jun 12 12:28:10 2014 +0200 +++ b/server/repository.py Tue Sep 02 12:22:18 2014 +0200 @@ -39,7 +39,6 @@ from warnings import warn from logilab.common.decorators import cached, clear_cache -from logilab.common.compat import any from logilab.common import flatten from yams import BadSchemaDefinition diff -r aee99876eb10 -r 0d831b40fa48 server/rqlannotation.py --- a/server/rqlannotation.py Thu Jun 12 12:28:10 2014 +0200 +++ b/server/rqlannotation.py Tue Sep 02 12:22:18 2014 +0200 @@ -21,8 +21,6 @@ __docformat__ = "restructuredtext en" -from logilab.common.compat import any - from rql import BadRQLQuery from rql.nodes import Relation, VariableRef, Constant, Variable, Or, Exists from rql.utils import common_parent diff -r aee99876eb10 -r 0d831b40fa48 server/sources/native.py --- a/server/sources/native.py Thu Jun 12 12:28:10 2014 +0200 +++ b/server/sources/native.py Tue Sep 02 12:22:18 2014 +0200 @@ -42,7 +42,6 @@ import logging import sys -from logilab.common.compat import any from logilab.common.decorators import cached, clear_cache from logilab.common.configuration import Method from logilab.common.shellutils import getlogin diff -r aee99876eb10 -r 0d831b40fa48 toolsutils.py --- a/toolsutils.py Thu Jun 12 12:28:10 2014 +0200 +++ b/toolsutils.py Tue Sep 02 12:22:18 2014 +0200 @@ -33,7 +33,6 @@ raise NotImplementedError from logilab.common.clcommands import Command as BaseCommand -from logilab.common.compat import any from logilab.common.shellutils import ASK from cubicweb import warning # pylint: disable=E0611 diff -r aee99876eb10 -r 0d831b40fa48 web/facet.py --- a/web/facet.py Thu Jun 12 12:28:10 2014 +0200 +++ b/web/facet.py Tue Sep 02 12:22:18 2014 +0200 @@ -58,7 +58,6 @@ from logilab.common.graph import has_path from logilab.common.decorators import cached, cachedproperty from logilab.common.date import datetime2ticks, ustrftime, ticks2datetime -from logilab.common.compat import all from logilab.common.deprecation import deprecated from logilab.common.registry import yes diff -r aee99876eb10 -r 0d831b40fa48 web/test/unittest_form.py --- a/web/test/unittest_form.py Thu Jun 12 12:28:10 2014 +0200 +++ b/web/test/unittest_form.py Tue Sep 02 12:22:18 2014 +0200 @@ -19,7 +19,6 @@ from xml.etree.ElementTree import fromstring from logilab.common.testlib import unittest_main, mock_object -from logilab.common.compat import any from cubicweb import Binary, ValidationError from cubicweb.devtools.testlib import CubicWebTC diff -r aee99876eb10 -r 0d831b40fa48 web/test/unittest_views_editforms.py --- a/web/test/unittest_views_editforms.py Thu Jun 12 12:28:10 2014 +0200 +++ b/web/test/unittest_views_editforms.py Tue Sep 02 12:22:18 2014 +0200 @@ -19,7 +19,6 @@ """ from logilab.common.testlib import unittest_main, mock_object -from logilab.common.compat import any from cubicweb.devtools.testlib import CubicWebTC from cubicweb.web.views import uicfg diff -r aee99876eb10 -r 0d831b40fa48 web/views/forms.py --- a/web/views/forms.py Thu Jun 12 12:28:10 2014 +0200 +++ b/web/views/forms.py Tue Sep 02 12:22:18 2014 +0200 @@ -47,7 +47,6 @@ from logilab.common import dictattr, tempattr from logilab.common.decorators import iclassmethod, cached -from logilab.common.compat import any from logilab.common.textutils import splitstrip from logilab.common.deprecation import deprecated diff -r aee99876eb10 -r 0d831b40fa48 web/views/uicfg.py --- a/web/views/uicfg.py Thu Jun 12 12:28:10 2014 +0200 +++ b/web/views/uicfg.py Tue Sep 02 12:22:18 2014 +0200 @@ -57,8 +57,6 @@ from warnings import warn -from logilab.common.compat import any - from cubicweb import neg_role from cubicweb.rtags import (RelationTags, RelationTagsBool, RelationTagsSet, RelationTagsDict, NoTargetRelationTagsDict,