Mercurial > hg
comparison mercurial/ui.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 | 41dcd7545266 |
children | d09be0b8a3c6 |
comparison
equal
deleted
inserted
replaced
28311:1b0ef07ba783 | 28312:24f1d3c70c41 |
---|