diff -r 2cf127d4f5fd -r b4bcabf55e77 __init__.py --- a/__init__.py Fri Jun 14 16:13:24 2013 +0200 +++ b/__init__.py Fri Jun 14 16:26:25 2013 +0200 @@ -38,10 +38,10 @@ import sys, os, logging from StringIO import StringIO +from logilab.common.deprecation import deprecated from logilab.common.logging_ext import set_log_methods from yams.constraints import BASE_CONVERTERS - if os.environ.get('APYCOT_ROOT'): logging.basicConfig(level=logging.CRITICAL) else: @@ -57,8 +57,9 @@ from logilab.common.registry import ObjectNotFound, NoSelectableObject, RegistryNotFound # convert eid to the right type, raise ValueError if it's not a valid eid -typed_eid = int - +@deprecated('[3.17] typed_eid() was removed. replace it with int() when needed.') +def typed_eid(eid): + return int(eid) #def log_thread(f, w, a): # print f.f_code.co_filename, f.f_code.co_name