##// END OF EJS Templates
cleanup: turn `pathsuboption` deprecation warning into an error...
marmoute -
r52031:5c9c4127 default
parent child Browse files
Show More
@@ -14,7 +14,6 b' from .. import ('
14 error,
14 error,
15 pycompat,
15 pycompat,
16 urllibcompat,
16 urllibcompat,
17 util,
18 )
17 )
19
18
20 from . import (
19 from . import (
@@ -680,8 +679,7 b' def pathsuboption(option, attr, display='
680 """
679 """
681 if isinstance(attr, bytes):
680 if isinstance(attr, bytes):
682 msg = b'pathsuboption take `str` as "attr" argument, not `bytes`'
681 msg = b'pathsuboption take `str` as "attr" argument, not `bytes`'
683 util.nouideprecwarn(msg, b"6.6", stacklevel=2)
682 raise TypeError(msg)
684 attr = attr.decode('ascii')
685
683
686 def register(func):
684 def register(func):
687 _pathsuboptions[option] = (attr, func)
685 _pathsuboptions[option] = (attr, func)
General Comments 0
You need to be logged in to leave comments. Login now