##// END OF EJS Templates
exthelper: simplify configitem registration
Matt Harbison -
r41075:c1476d09 default
parent child Browse files
Show More
@@ -13,7 +13,6 b' from __future__ import absolute_import'
13 13
14 14 from . import (
15 15 commands,
16 configitems,
17 16 extensions,
18 17 fileset as filesetmod,
19 18 registrar,
@@ -54,12 +53,7 b' class exthelper(object):'
54 53 self.command._doregister = _newdoregister
55 54
56 55 self.configtable = {}
57 self._configitem = registrar.configitem(self.configtable)
58
59 def configitem(self, section, config, default=configitems.dynamicdefault):
60 """Register a config item.
61 """
62 self._configitem(section, config, default=default)
56 self.configitem = registrar.configitem(self.configtable)
63 57
64 58 def merge(self, other):
65 59 self._uicallables.extend(other._uicallables)
General Comments 0
You need to be logged in to leave comments. Login now