##// END OF EJS Templates
registrar: make format strings unicodes and not bytes...
Augie Fackler -
r30059:6ffb7e02 default
parent child Browse files
Show More
@@ -8,6 +8,7 b''
8 from __future__ import absolute_import
8 from __future__ import absolute_import
9
9
10 from . import (
10 from . import (
11 pycompat,
11 util,
12 util,
12 )
13 )
13
14
@@ -121,7 +122,7 b' class revsetpredicate(_funcregistrarbase'
121 Otherwise, explicit 'revset.loadpredicate()' is needed.
122 Otherwise, explicit 'revset.loadpredicate()' is needed.
122 """
123 """
123 _getname = _funcregistrarbase._parsefuncdecl
124 _getname = _funcregistrarbase._parsefuncdecl
124 _docformat = "``%s``\n %s"
125 _docformat = pycompat.sysstr("``%s``\n %s")
125
126
126 def _extrasetup(self, name, func, safe=False, takeorder=False):
127 def _extrasetup(self, name, func, safe=False, takeorder=False):
127 func._safe = safe
128 func._safe = safe
@@ -160,7 +161,7 b' class filesetpredicate(_funcregistrarbas'
160 Otherwise, explicit 'fileset.loadpredicate()' is needed.
161 Otherwise, explicit 'fileset.loadpredicate()' is needed.
161 """
162 """
162 _getname = _funcregistrarbase._parsefuncdecl
163 _getname = _funcregistrarbase._parsefuncdecl
163 _docformat = "``%s``\n %s"
164 _docformat = pycompat.sysstr("``%s``\n %s")
164
165
165 def _extrasetup(self, name, func, callstatus=False, callexisting=False):
166 def _extrasetup(self, name, func, callstatus=False, callexisting=False):
166 func._callstatus = callstatus
167 func._callstatus = callstatus
@@ -169,7 +170,7 b' class filesetpredicate(_funcregistrarbas'
169 class _templateregistrarbase(_funcregistrarbase):
170 class _templateregistrarbase(_funcregistrarbase):
170 """Base of decorator to register functions as template specific one
171 """Base of decorator to register functions as template specific one
171 """
172 """
172 _docformat = ":%s: %s"
173 _docformat = pycompat.sysstr(":%s: %s")
173
174
174 class templatekeyword(_templateregistrarbase):
175 class templatekeyword(_templateregistrarbase):
175 """Decorator to register template keyword
176 """Decorator to register template keyword
General Comments 0
You need to be logged in to leave comments. Login now