projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b09cfb0
)
get_output_encoding falls back to get_encoding if sys.__stdout__ is redirected.
author
W. Trevor King
<wking@drexel.edu>
Fri, 15 Apr 2011 00:47:27 +0000
(20:47 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 15 Apr 2011 00:47:27 +0000
(20:47 -0400)
libbe/util/encoding.py
patch
|
blob
|
history
diff --git
a/libbe/util/encoding.py
b/libbe/util/encoding.py
index c759529fdf6ce8d99783853278a44b5e64775744..3cc425dc9167d27935e8d18a82ce1c81bf41b31c 100644
(file)
--- a/
libbe/util/encoding.py
+++ b/
libbe/util/encoding.py
@@
-49,7
+49,7
@@
def get_input_encoding():
return get_encoding()
def get_output_encoding():
- return sys.__stdout__.encoding
+ return sys.__stdout__.encoding
or get_encoding()
def get_filesystem_encoding():
return get_encoding()