Show More
@@ -14,7 +14,6 b' from .. import (' | |||
|
14 | 14 | error, |
|
15 | 15 | pycompat, |
|
16 | 16 | urllibcompat, |
|
17 | util, | |
|
18 | 17 | ) |
|
19 | 18 | |
|
20 | 19 | from . import ( |
@@ -680,8 +679,7 b' def pathsuboption(option, attr, display=' | |||
|
680 | 679 | """ |
|
681 | 680 | if isinstance(attr, bytes): |
|
682 | 681 | msg = b'pathsuboption take `str` as "attr" argument, not `bytes`' |
|
683 | util.nouideprecwarn(msg, b"6.6", stacklevel=2) | |
|
684 | attr = attr.decode('ascii') | |
|
682 | raise TypeError(msg) | |
|
685 | 683 | |
|
686 | 684 | def register(func): |
|
687 | 685 | _pathsuboptions[option] = (attr, func) |
General Comments 0
You need to be logged in to leave comments.
Login now