##// END OF EJS Templates
doctest: pass encoding name as system string
Yuya Nishihara -
r34137:e9e225f1 default
parent child Browse files
Show More
@@ -268,7 +268,7 b" def trim(s, width, ellipsis='', leftside"
268 268 >>> print trim(t, 1, ellipsis=ellipsis)
269 269 +
270 270 >>> u = u'\u3042\u3044\u3046\u3048\u304a' # 2 x 5 = 10 columns
271 >>> t = u.encode(encoding.encoding)
271 >>> t = u.encode(pycompat.sysstr(encoding.encoding))
272 272 >>> print trim(t, 12, ellipsis=ellipsis)
273 273 \xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a
274 274 >>> print trim(t, 10, ellipsis=ellipsis)
General Comments 0
You need to be logged in to leave comments. Login now