Changeset 3666

Show
Ignore:
Timestamp:
17/11/08 14:48:46 (7 weeks ago)
Author:
dmeyer
Message:

preserve function name when using decorators

Location:
trunk/base/src/notifier
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/notifier/coroutine.py

    r3645 r3666  
    218218        if policy == POLICY_SYNCHRONIZED: 
    219219            func._lock = None 
     220        newfunc.func_name = func.func_name 
    220221        return newfunc 
    221222 
  • trunk/base/src/notifier/thread.py

    r3645 r3666  
    131131                in_progress.progress = args[0] 
    132132            return in_progress 
     133 
     134        newfunc.func_name = func.func_name 
    133135        return newfunc 
    134136 
  • trunk/base/src/notifier/timer.py

    r3645 r3666  
    103103            return True 
    104104 
     105        newfunc.func_name = func.func_name 
    105106        return newfunc 
    106107