##// END OF EJS Templates
make an ascii docstring...
MinRK -
Show More
@@ -288,14 +288,14 b' class capture_output(object):'
288 sys.stderr = self.sys_stderr
288 sys.stderr = self.sys_stderr
289
289
290 def unicode_std_stream(stream='stdout'):
290 def unicode_std_stream(stream='stdout'):
291 u"""Get a wrapper to write unicode to stdout/stderr as UTF-8.
291 r"""Get a wrapper to write unicode to stdout/stderr as UTF-8.
292
292
293 This ignores environment variables and default encodings, to reliably write
293 This ignores environment variables and default encodings, to reliably write
294 unicode to stdout or stderr.
294 unicode to stdout or stderr.
295
295
296 ::
296 ::
297
297
298 unicode_std_stream().write(u'ł@e¶ŧ←')
298 unicode_std_stream().write(u'\u0142@e\xb6\u0167\u2190')
299 """
299 """
300 assert stream in ('stdout', 'stderr')
300 assert stream in ('stdout', 'stderr')
301 stream = getattr(sys, stream)
301 stream = getattr(sys, stream)
General Comments 0
You need to be logged in to leave comments. Login now