diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2008-12-12 12:49:45 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2008-12-12 12:49:45 +0100 |
| commit | a9e72045339b2040686bf72e3ecf9146b6793798 (patch) | |
| tree | ee54f1cfd8d87bf48fde1765cf0adb78cc58ab06 /bin/sql_db.py | |
| parent | 6706f6b07be67aedab3c19ea91794fcb1acdbeaa (diff) | |
[FIX] fix bug with functools on python 2.4
bzr revid: christophe@tinyerp.com-20081212114945-jh7djsx6dv8sr1kh
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index 64dbaa0f9e2..a63b2eff205 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -62,7 +62,8 @@ class Cursor(object): count = 0 def check(f): - from functools import wraps + from tools.func import wraps + @wraps(f) def wrapper(self, *args, **kwargs): if not hasattr(self, '_obj'): |
