Commit f4726959 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[py3k] replace '_ = unicode' in global scope (closes #7589459)

parent 79ff784cd8af
......@@ -167,7 +167,6 @@ Here are all environment variables that may be used to configure *CubicWeb*:
from __future__ import print_function
__docformat__ = "restructuredtext en"
_ = unicode
import sys
import os
......@@ -189,7 +188,7 @@ from logilab.common.configuration import (Configuration, Method,
ConfigurationMixIn, merge_options)
from cubicweb import (CW_SOFTWARE_ROOT, CW_MIGRATION_MAP,
ConfigurationError, Binary)
ConfigurationError, Binary, _)
from cubicweb.toolsutils import create_dir
CONFIGURATIONS = []
......
......@@ -20,7 +20,7 @@ Cubicweb registries
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
import sys
from os.path import join, dirname, realpath
......
......@@ -20,7 +20,7 @@ framework itself.
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from itertools import chain
from warnings import warn
......
......@@ -20,7 +20,7 @@ validity
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from threading import Lock
......
......@@ -18,7 +18,7 @@
"""Hooks for synchronizing computed attributes"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from collections import defaultdict
......
......@@ -24,7 +24,7 @@ checking for schema consistency is done in hooks.py
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from copy import copy
from hashlib import md5
......
......@@ -18,7 +18,7 @@
"""Core hooks: synchronize living session on persistent data changes"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from cubicweb import UnknownProperty, BadConnectionId, validation_error
from cubicweb.predicates import is_instance
......
......@@ -17,7 +17,7 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""hooks for repository sources synchronization"""
_ = unicode
from cubicweb import _
from socket import gethostname
......
......@@ -22,7 +22,7 @@ from yams.reader import context
from cubicweb.schema import ERQLExpression
_ = unicode
from cubicweb import _
class friend(RelationDefinition):
subject = ('CWUser', 'CWGroup')
......
......@@ -18,7 +18,7 @@
"""Core hooks: workflow related hooks"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from datetime import datetime
......
......@@ -19,7 +19,6 @@
from __future__ import print_function
__docformat__ = "restructuredtext en"
_ = unicode
import re
from os.path import join, basename
......@@ -49,7 +48,7 @@ from rql import parse, nodes, RQLSyntaxError, TypeResolverException
from rql.analyze import ETypeResolver
import cubicweb
from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized
from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized, _
try:
from cubicweb import server
......
......@@ -19,7 +19,7 @@
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from yams.buildobjs import EntityType, RelationType, SubjectRelation, String
from cubicweb.schema import RRQLExpression
......
......@@ -18,7 +18,7 @@
"""core CubicWeb schema, but not necessary at bootstrap time"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from yams.buildobjs import (EntityType, RelationType, RelationDefinition,
SubjectRelation,
......
......@@ -19,7 +19,7 @@
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from yams.buildobjs import (EntityType, RelationType, RelationDefinition, Bytes,
SubjectRelation, RichString, String, Boolean, Int)
......
......@@ -19,7 +19,7 @@
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from yams.buildobjs import (EntityType, RelationType, RelationDefinition,
SubjectRelation,
......
......@@ -34,7 +34,7 @@ from cubicweb import ValidationError, AuthenticationError, Binary
from cubicweb.server import utils
from cubicweb.server.sources import datafeed
_ = unicode
from cubicweb import _
# search scopes
BASE = ldap.SCOPE_BASE
......
......@@ -5,7 +5,7 @@
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
# pylint: disable-msg=E0611,F0401
from yams.buildobjs import (SubjectRelation, RelationType, EntityType,
......
......@@ -18,7 +18,7 @@
"""some views to handle notification on data changes"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from itertools import repeat
......
......@@ -18,7 +18,7 @@
"""some hooks and views to handle supervising of any data changes"""
__docformat__ = "restructuredtext en"
_ = unicode
from cubicweb import _
from cubicweb import UnknownEid
from cubicweb.predicates import none_rset
......
......@@ -23,7 +23,7 @@ from cubicweb.schema import (WorkflowableEntityType,
RQLConstraint, RQLVocabularyConstraint)
_ = unicode
from cubicweb import _
class Personne(EntityType):
......
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