Skip to content

Commit

Permalink
Merge 08a8598 into eef2ca7
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouielu committed Jul 27, 2017
2 parents eef2ca7 + 08a8598 commit e6980f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twstock/cli/best_four_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import twstock

# XXX: Repalce sys.stdout prevent Windows UnicodeEncodeError on cmd.exe
stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
stdout = io.TextIOWrapper(
getattr(sys.stdout, 'buffer', sys.stdout), encoding='utf-8', errors='replace')


def run(argv):
Expand Down

0 comments on commit e6980f7

Please sign in to comment.