From 1fcb59ae379d62145ca7c5187338ffe4e64d587d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Cardona?= Date: Sun, 28 Sep 2014 01:35:47 +0200 Subject: [testlib] Remove obsolete backwards compatibility functools.wraps() is available since python 2.5 --- testlib.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/testlib.py b/testlib.py index be20874..31efe56 100644 --- a/testlib.py +++ b/testlib.py @@ -74,14 +74,7 @@ else: import unittest from unittest import SkipTest -try: - from functools import wraps -except ImportError: - def wraps(wrapped): - def proxy(callable): - callable.__name__ = wrapped.__name__ - return callable - return proxy +from functools import wraps from logilab.common.debugger import Debugger, colorize_source from logilab.common.decorators import cached, classproperty -- cgit v1.2.1