common/utils.py
author sylvain.thenault@logilab.fr
Tue, 07 Apr 2009 19:55:10 +0200
branchtls-sprint
changeset 1276 f213008fad2c
parent 1132 96752791c2b6
child 1808 aa09e20dd8c0
permissions -rw-r--r--
catch FieldNotFound instead of Exception in field_by_name, return the field if guessable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1132
96752791c2b6 pylint cleanup
sylvain.thenault@logilab.fr
parents: 936
diff changeset
     1
"""pre 3.2 bw compat"""
96752791c2b6 pylint cleanup
sylvain.thenault@logilab.fr
parents: 936
diff changeset
     2
# pylint: disable-msg=W0614,W0401
936
f54938ba6c60 missing bw compat module
sylvain.thenault@logilab.fr
parents:
diff changeset
     3
from warnings import warn
f54938ba6c60 missing bw compat module
sylvain.thenault@logilab.fr
parents:
diff changeset
     4
warn('moved to cubicweb.utils', DeprecationWarning, stacklevel=2)
f54938ba6c60 missing bw compat module
sylvain.thenault@logilab.fr
parents:
diff changeset
     5
from cubicweb.utils import *