[#8396] upgrade decorator

rewrite one @decorator due to
https://github.com/micheles/decorator/issues/109
2 files changed