Mercurial > hg
diff mercurial/strutil.py @ 28312:24f1d3c70c41
extensions: copy extra __dict__ of original function
Future patches will make @command decorator set properties such as "norepo" to
a function object. This patch makes sure these properties never be lost by
wrapcommand() or wrapfunction().
This change won't be crazy as the standard functools.wraps() copies __dict__.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Jan 2016 20:04:03 +0900 |
parents | b723f05ec49b |
children |