##// END OF EJS Templates
encoding: define local identify functions with explicit type comments...
Augie Fackler -
r43770:5f2a8dab default
parent child Browse files
Show More
@@ -241,8 +241,15 b' if pycompat.ispy3:'
241 strfromlocal = unifromlocal
241 strfromlocal = unifromlocal
242 strmethod = unimethod
242 strmethod = unimethod
243 else:
243 else:
244 strtolocal = pycompat.identity
244
245 strfromlocal = pycompat.identity
245 def strtolocal(s):
246 # type: (str) -> bytes
247 return s
248
249 def strfromlocal(s):
250 # type: (bytes) -> str
251 return s
252
246 strmethod = pycompat.identity
253 strmethod = pycompat.identity
247
254
248 if not _nativeenviron:
255 if not _nativeenviron:
General Comments 0
You need to be logged in to leave comments. Login now