It seems cleaner to just remove _partialinit, copy, __init__. This
patch makes it so by using getattr in log so those fields do not need to
be existed.
Details
Details
- Reviewers
durham yuja - Group Reviewers
hg-reviewers - Commits
- rHGa37e18b5f055: blackbox: simplify ui states
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
uisetup() only replaces the __class__. Can we be sure that blackboxui.__init__()
was called prior to ui.log() ?
Comment Actions
Good catch! I should have been aware of that since that's part of the experience working on chg. I still want to simplify the interface. Maybe we can remove __init__ and copy instead.