| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
__name__ attribute
|
|
|
|
|
|
|
|
|
|
|
| |
for LazyObject
functools.wraps was breaking the behavior of LazyObject because it tried to
access attributes of the LazyObject that triggers an import which could
sometime fails in this situation where some modules are marked as deprecated
but aren't imported yet.
For example see https://forge.extranet.logilab.fr/cubicweb/cubicweb/blob/3.24.0/cubicweb/schemas/__init__.py#L51
|
|
|
|
| |
Actually the old compatibility code actually prevented this bug so back it up.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
deprecation utils are called
There was a missmatched combination of:
* the frame wasn't always correctly grabbed
* grabbing the frame in the situation of a decorator didn't make any sens, so
switch to func.__module__
* the tests were bad and expected "[logilab.common]" while it should have been
"[test_deprecation]" because it was there that the depreciation was declared
|
|
|