##// END OF EJS Templates
typing: fix argument type of encoding.tolocal() and .fromutf8b()...
Yuya Nishihara -
r44076:b65fcccd default
parent child Browse files
Show More
@@ -138,7 +138,7 b' class safelocalstr(bytes):'
138
138
139
139
140 def tolocal(s):
140 def tolocal(s):
141 # type: (Text) -> bytes
141 # type: (bytes) -> bytes
142 """
142 """
143 Convert a string from internal UTF-8 to local encoding
143 Convert a string from internal UTF-8 to local encoding
144
144
@@ -648,7 +648,7 b' def toutf8b(s):'
648
648
649
649
650 def fromutf8b(s):
650 def fromutf8b(s):
651 # type: (Text) -> bytes
651 # type: (bytes) -> bytes
652 '''Given a UTF-8b string, return a local, possibly-binary string.
652 '''Given a UTF-8b string, return a local, possibly-binary string.
653
653
654 return the original binary string. This
654 return the original binary string. This
General Comments 0
You need to be logged in to leave comments. Login now